Link to home
Start Free TrialLog in
Avatar of dkent_77
dkent_77

asked on

Using Visual Basic, how do you programmatically Disable/Enable (Windows Device Manager) a USB Flash Drive

Under Windows XP, after files are read once from the USB flash drive, they are in Cache on the computer.  Subsequent reads retrieve the file that is in cache.   I want to be able to programmatically (with Visual Basic), physically re-read a file off the flash drive without having to eject and re-insert the USB flash drive.   In Windows Device Manager, if you Disable/Enable the USB drive, Windows will re-read the file system.  A subsequent file read retrieve's a file from the flash drive.  With Visual Basic, can you programatically do a Device Manager Disable/Enable?
ASKER CERTIFIED SOLUTION
Avatar of kambleamar
kambleamar
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkent_77
dkent_77

ASKER

Thank you.