Sign in to follow this  
Followers 0
ChrisL

USB question

3 posts in this topic

Morning..

Does anyone know how to force a refresh of the USB chain via a script?

The issue is that a card reader is installed on a computer but a faulty media card or other circumstance could make the drive perform unsafe removal of media and the drive letter would dissapear from "My Computer"

The only way of getting it back are 1 restart the PC or 2 remove the USB cable and replug which forces the USB to refresh.

I'm guessing there must be a way to do this but I am struggling to find out how.

Share this post


Link to post
Share on other sites



Morning..

Does anyone know how to force a refresh of the USB chain via a script?

The issue is that a card reader is installed on a computer but a faulty media card or other circumstance could make the drive perform unsafe removal of media and the drive letter would dissapear from "My Computer"

The only way of getting it back are 1 restart the PC or 2 remove the USB cable and replug which forces the USB to refresh.

I'm guessing there must be a way to do this but I am struggling to find out how.

Write a script to open system properties and scan for hardware changes. I would look into it a bit more but I am too busy today.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Take a look here: http://support.microsoft.com/?kbid=311272 for Devcon. You may be able to restart it with this.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0