windows - There is no disk in the drive. Please insert a disk into drive \Device\Harddisk\DR5 -


The problem is: A batch program is trying to read a USB drive that the memory flash card is not found this. When no one is in it, a message is displayed:

"There is no disk in the drive. Please insert a disk in drive \ device \ harddisk \ DR5."

But the graphical Windows style has stopped the batch program at that time.

I have not had any errors, but I do not like to stop the program.

So, how do I solve that problem? I can not check it, as if through experiment:

If present then X: ...

Because, and yes you have guessed it, it also shows the error, and prevents the batch program. I can launch another batch program in background mode, and give it a hang, but it will get messy.

This reminds me of the old message: abort, try again, failed

It was a message inside the dos box.

You can try

  Wall X: & gt; Null if error level 1 echo drive does not exist or is not ready  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -