Diskpart script fails
I have a diskpart script that used to work fine in XP. How I am trying it in Windows 7 and the cmd window appears for a nonsecond and the script was not run. I tried to add some 'pauses' in there to determine what happened, but that didn't help.
If I just type in the commands one line at a time using Recovery, CMD it works fine.
What can I do?
Jane
-
can you post your script - SMal.tmcc 10 years ago
Answers (5)
you need to split this to diskpart and a separate format task for legacy drives
for diskpart script use:
select disk 0
clean
create partition primary size=4000
assign letter=z
create partition primary
select partition 2
assign letter=c
active
list vol
exit
then create a bat script to run after that
format /q /y /fs:ntfs z:
format /q /y /fs:ntfs c:
Comments:
-
for uefi use
Select disk 0
Clean
Convert gpt
Create partition efi size=4000
Assign letter=z
Format quick fs=FAT32
Create partition msr size=128
Create partition primary
Assign letter=c
Format quick fs=NTFS
Exit - SMal.tmcc 10 years ago -
and maybe all you need to do is add the FS=NTFS part to your existing script - SMal.tmcc 10 years ago