Sign in to follow this  
Followers 0
zFrank

let's see who is good in autoit

8 posts in this topic

#1 ·  Posted (edited)

hi, my question is

how to safely remove a removable USB device?

i mean that i want to disconnect a usb device connected to my pc.

anybody please help me out!

Edited by zFrank

[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Here a link to some code to perform a safe removal of a usb device. Unfortunately it's not somethin I can translate into AutoIt, but maybe another smart person can, will?

http://support.microsoft.com/kb/q165721

Edited by spudw2k

Share this post


Link to post
Share on other sites

Interesting. I'd expect this method to actually remove the device, like how the safely remove icon does. I end up with an ejected drive instead. That works just as good since the device cannot be written to when it's ejected. I figured it would remove it though. Oh well.

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