Jump to content
europn

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

Recommended Posts

europn

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.

Share this post


Link to post
Share on other sites
AutoBert

Look in the help on 'DriveGetDrive', 'FileExists', 'MsgBox', 'If..Then', 'Exit'

Share this post


Link to post
Share on other sites
l3ill

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 !

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

×