Jump to content

check for a specific USB drive name and run a few IF's after


Recommended Posts

I am new to AutoIt and I'm trying to create an .exe that will "live" on a USB and when ran, it will check all USB drives for a specific usb name.

-if drive name found check for a specific file on the drive
---if file found give a msg and run a program
---if not found give a msg and stop

-if drive name not found give a msg and stop there

Any help/guidance is greatly appreciated.
Thanks.

Link to comment
Share on other sites

Hi,

  and welcome to the forums !

That sounds like a fun project to start learning Autoit !

I suggest playing with the example for _WinAPI_GetDriveBusType

Along with AutoBerts suggestions above and come back when you have questions...

Good Luck !

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...