Syekick Posted September 29, 2008 Share Posted September 29, 2008 (edited) I'll be making a distribution CD / thumb drive combo and will not know what drive letter the script will run from. Under MSDOS batch file lingo, %CD% would call the drive letter path (%CD%) of the location of the autoit script running and allow me to call other locations. So, how do I do this in Autoit? Help didn't cover this one. Edited September 29, 2008 by Syekick Link to comment Share on other sites More sharing options...
Zedna Posted September 29, 2008 Share Posted September 29, 2008 Look at @ScriptDir macro - Directory containing the running script. (Result does not contain a trailing backslash) You may parse drive letter from it simply. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now