Sachin 0 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 Share this post Link to post Share on other sites
Jon 1,009 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/ Share this post Link to post Share on other sites
Proof 0 Posted June 29, 2004 FileChangeDir("c:\") $file = FileOpen("ScriptDir.txt", 2) FileWriteLine($file, @ScriptDir) FileClose($file) Share this post Link to post Share on other sites