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?
Visual Basic ClassicVisual Basic.NET

Avatar of undefined
Last Comment
dkent_77
ASKER CERTIFIED SOLUTION
Avatar of kambleamar
kambleamar
Flag of Afghanistan image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of dkent_77
dkent_77

ASKER

Thank you.  
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo