My computer has two CD-ROM drives, F: and G:. There is a disc with a Test.txt file placed in its root directory, and I want to determine in a batch file which CD-ROM drive this disc is actually in. When there is no disc in drive F:, executing the following statement causes an error:
if exist f:\nul echo ffff
And it reports the following information:
CDR101:Not ready reading drive F
Abort,Retry,Falt?
I'd like to ask all the experts, how should I avoid this runtime error?
Thanks!
if exist f:\nul echo ffff
And it reports the following information:
CDR101:Not ready reading drive F
Abort,Retry,Falt?
I'd like to ask all the experts, how should I avoid this runtime error?
Thanks!
