I have a txt file that has this
select disk 0
create partition primary size=100
select partition 1
format quick fs=ntfs label="System"
create partition primary
select partition 2
format quick fs=ntfs label="Windows"
And to run this as a script
i use diskpart.exe /s WipeC.txt
BUT i am booting of a usb with a label name "images"
This has only happen one time but my script wiped my usb because it was disk 0.
Is there a way to check if disk 0 is label "images" if it is DON'T wipe it.