Jump to content

Detect the presence/absence of a USB key


HeX
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...