HI,
I want to know that how we can copy any removable disk into a folder in my hard disk when it is inserted. I mean any removable disk like floppy, CD etc.
Printable View
HI,
I want to know that how we can copy any removable disk into a folder in my hard disk when it is inserted. I mean any removable disk like floppy, CD etc.
Are you talking about CDs that you have made?
What the heck has that to do with removable media notification?
The only thing i can think of is trying to list the drive with a path control over and over. CD's would work fine, but the diskdrive will start purring like some fat cat.
This works, but as cyrillic said, it "starts purring" and in addition to that, it slows down the application's performance.
you could always subclass your form and look for the
WM_DEVICECHANGE message with wParam of
WM_DEVICEARRIVAL this will tell you when a new
disc is inserted into the cdrom drive. However it won't
work for floppy drives because windows doesn't detect
when a disk is inserted into a floppy.
Cool, didn't know that. You can turn on autonotification for the A: drive with TweakUI.
i'm pretty sure even if you turn on autonotification for the a: drive it will only run the autorun.inf file if you click on A:/ in the windows explorer window and still doesn't issue a windows message if a disk is entered.