I am working on Winpe environment, how to get informations if the disk 0 is partitioned or not to launch specific commands on each case i have tried this, but how to get this works properly in a batch file?
set part_inst=wmic partition list instance
if the disk is not initialized it will return :
No Available Instance.
else if partitions are found it will return :
Index 0 1 2
how to use this information in a batch file to launch the procedure like this
if %part_inst% == "No Available Instance." ( Rem execute sequence_1 of commands if disk is **_not partitioned_** ) else ( Rem execute sequence_2 of commands if disk is **_partitioned_** )