Jump to content

Run batch files in subfolders


Go to solution Solved by JockoDundee,

Recommended Posts

I make AutoIt files that set to run few batch files that I need and I use the command below in AutoIt. 

Runwait("sample.bat",@ScriptDir)

Runwait("sample2.bat,@scriptDir)

etc.... 

They works fine if I placed them all in the same folder in the USB drive. But I just want the AutoIt file in the folder by itself. Batch files and everything else in a subfolder, so they don't look so messy and confusing when I need to open AutoIt from a USB drive. But I can't make it to work if I move it to a different folder. Is there a way to do it without specify the whole directory since this is from the USB drive, it could be D, or E drive when plugged into a computer. Thanks

 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...