P
Praetorian Guard
Hi,
I have the batch file below. It will move all doc files from D: to C: but
I'd like to have an error level if there is an error encountered it will not
continue to move the rest of the files.
FOR %%a IN (D:\*.doc) DO (move %%a c:\)
Something like this.
FOR %%a IN (D:\*.doc) DO
(
move %%a c:\
if %errorlevel% NEQ 0 goto end
)
:end
How do I do thins?
Thank you in advance.
I have the batch file below. It will move all doc files from D: to C: but
I'd like to have an error level if there is an error encountered it will not
continue to move the rest of the files.
FOR %%a IN (D:\*.doc) DO (move %%a c:\)
Something like this.
FOR %%a IN (D:\*.doc) DO
(
move %%a c:\
if %errorlevel% NEQ 0 goto end
)
:end
How do I do thins?
Thank you in advance.