G
Guest
Hi,
Windows displays a dialog box when I attempt to read files from a CD Drive
and there is not a CD loaded. Anyone know how to stop this dialog from being
displayed?
Following is code used to read drive. drivePath is equal to @"d:\" and d is
my CD rom drive.
Directory.GetFiles ( drivePath, searchPattern );
The dialog box has the following message
"There is no disk in the drive. Please insert a disk into drive D:."
There are three buttions: Cancel, Try Again, and Continue.
Pressing continue causes the following exception.
Source: mscorlib
Exception Type: System.IO.IOException
Message: The device is not ready.
Windows displays a dialog box when I attempt to read files from a CD Drive
and there is not a CD loaded. Anyone know how to stop this dialog from being
displayed?
Following is code used to read drive. drivePath is equal to @"d:\" and d is
my CD rom drive.
Directory.GetFiles ( drivePath, searchPattern );
The dialog box has the following message
"There is no disk in the drive. Please insert a disk into drive D:."
There are three buttions: Cancel, Try Again, and Continue.
Pressing continue causes the following exception.
Source: mscorlib
Exception Type: System.IO.IOException
Message: The device is not ready.