Friday 15 July 2011

Batch exit if drive device not ready/unavailable -



Batch exit if drive device not ready/unavailable -

i need forcefulness batch file stop , exit batch programme (but not command prompt) if selecting drive/device fails because not ready/unavailable.

i've tried...

d: || exit /b

...and tried...

if %errorlevel% neq 0 exit /b %errorlevel%

...after every line without success.

like :

if not exist d: exit/b

batch-file

No comments:

Post a Comment