Jump to content
Sign in to follow this  
HeX

Detect the presence/absence of a USB key

Recommended Posts

HeX

Is there any code to detect the presence of a USB key?

I'm wanting to set up a box that will download some files (AV definitions) and have an AutoIt script copy them to the USB key when detected.

Share this post


Link to post
Share on other sites
AutoChris

Is there any code to detect the presence of a USB key?

I'm wanting to set up a box that will download some files (AV definitions) and have an AutoIt script copy them to the USB key when detected.

<{POST_SNAPBACK}>

Try using DriveGetDrive("REMOVABLE") to get the drive letter of the removable drive and then checking to see if this drive letter exists.

See the help file for other options. :whistle:

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  

×