ChrisL Posted February 20, 2006 Share Posted February 20, 2006 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. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
BigDod Posted February 20, 2006 Share Posted February 20, 2006 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. 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 Link to comment Share on other sites More sharing options...
Stumpii Posted February 20, 2006 Share Posted February 20, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now