auto answering a FORMAT command
Posted: 30 Jul 2007 11:18
I am currently writing a script that will auto partition a disk into volumes as part of the server installation.
I am using diskpart to create the volumes and assigning the appropriate drive letter, but i can not work out a way of stopping the FORMAT command from requiring user input to select Y on the "are you sure you wish to format" question.
the format command i am using is :
and the diskpart creation command (just in case its needed) is :
Any help you could give me would be greatly appreciated.
Regards
Mark
I am using diskpart to create the volumes and assigning the appropriate drive letter, but i can not work out a way of stopping the FORMAT command from requiring user input to select Y on the "are you sure you wish to format" question.
the format command i am using is :
Code: Select all
format e: /fs:ntfs /q /v:MthEndData
and the diskpart creation command (just in case its needed) is :
Code: Select all
create volume simple size=50 disk=0
assign letter e
Any help you could give me would be greatly appreciated.
Regards
Mark