Sachin Posted June 29, 2004 Share Posted June 29, 2004 How can I get the location from where the autoit script/exe was run ? I want to store this location in a file. Thanks, Sachin Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 29, 2004 Administrators Share Posted June 29, 2004 MsgBox(0, "Script directory:", @ScriptDir) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Proof Posted June 29, 2004 Share Posted June 29, 2004 FileChangeDir("c:\") $file = FileOpen("ScriptDir.txt", 2) FileWriteLine($file, @ScriptDir) FileClose($file) 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