Need a dos script to ignore the "There is no disk in drive.." error
Posted on 2012-04-10
I am trying to run a batch that will scan all drives to look for a folder, this issue I'm having is as soon as it his an empty DVD drive I would get the "There is no disk in drive" pop up. I need to be able to ignore this error and continue to scan, I am running this on Windows 7 64 bit.
FOR %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
IF EXIST %%d:\thisisatestfolderdonotremove
NOTE: I have seen one other posting about this issue but the fix did not work. Also I would need this in a DOS command, not vb script.