how to stop showing "Drive not ready"?

  • Thread starter Thread starter barbara_dave
  • Start date Start date
B

barbara_dave

Hi all,

I use GetLogicDrive to get all drives. when I use "for each.." loop
searching each drive, I got error"A: drive not ready",... I want to
seach some files which are in a drive, but I don't want to get error
message during the search. I try to use "Try..Catch" to catch the
execption, but it does not work. How to get rid of "Drive not Ready"
error message?


Thank you so much for the help!
 
I use GetLogicDrive to get all drives. when I use "for each.." loop
searching each drive, I got error"A: drive not ready",... I want to
seach some files which are in a drive, but I don't want to get error
message during the search. I try to use "Try..Catch" to catch the
execption, but it does not work. How to get rid of "Drive not Ready"
error message?

Untested: P/invoke + 'SetErrorMode':

<URL:http://groups.google.to/group/micro...entwickler.dotnet.csharp/msg/3389fc8ffdaaf7ac>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top