Like this:
dready C: /w
if ERRORLEVEL 2 goto az
dready D: /w
if ERRORLEVEL 2 goto az
dready E: /w
if ERRORLEVEL 2 goto az
...
dready z: /w
if ERRORLEVEL 2 goto az
(What I mean is, if the return code is 2, then execute “az” and stop doing dready on the following partitions.)
I changed it to:
for %%1 in (d e f g h i j k l m n o p q r s t u v w) do dready %%1: /w
if ERRORLEVEL 2 goto az
but it actually doesn't work. How should I change it?
dready C: /w
if ERRORLEVEL 2 goto az
dready D: /w
if ERRORLEVEL 2 goto az
dready E: /w
if ERRORLEVEL 2 goto az
...
dready z: /w
if ERRORLEVEL 2 goto az
(What I mean is, if the return code is 2, then execute “az” and stop doing dready on the following partitions.)
I changed it to:
for %%1 in (d e f g h i j k l m n o p q r s t u v w) do dready %%1: /w
if ERRORLEVEL 2 goto az
but it actually doesn't work. How should I change it?

