H
Hermit Dave
Hello All,
I am in process of writing a small winforms control to read and copy data
off a removable drive.
I started it off as a winforms application and then dropped it in favour of
a control.
I have the drive insert event (using WMI) and copy process working using
recursive iteration.
have put in a try catch block within copy process to handle user removing
the media.
instead the system handles the IO read failure prompting me with the
following message and then passes control to my catch block.
Application.exe - Wrong Volume
The wrong volume is in the drive. Please insert volume VOLUME_NAME in drive
DRIVE_LETTER:
with cancel, try again and continue options
what i would like to know is whether there is a way to ensure that the
system doesn't prompt the user instead it is be handled from within the
code.
would be glad for any pointers, thanks in advance
I am in process of writing a small winforms control to read and copy data
off a removable drive.
I started it off as a winforms application and then dropped it in favour of
a control.
I have the drive insert event (using WMI) and copy process working using
recursive iteration.
have put in a try catch block within copy process to handle user removing
the media.
instead the system handles the IO read failure prompting me with the
following message and then passes control to my catch block.
Application.exe - Wrong Volume
The wrong volume is in the drive. Please insert volume VOLUME_NAME in drive
DRIVE_LETTER:
with cancel, try again and continue options
what i would like to know is whether there is a way to ensure that the
system doesn't prompt the user instead it is be handled from within the
code.
would be glad for any pointers, thanks in advance