Ejaz Posted February 3, 2009 Posted February 3, 2009 Hi Guys, I am looking for a simple answer. Want to have one directory which contain scripts and also within the main directories there are other folders which contain files. I want to give the path of the specific file within the main folder. Instead of absolute path like below $App = "C:\sampleDirectory\dir2\app2.exe" I want something like below $App = "sampleDirectory\dir2\app2.exe" where the main script is in the "sampleDirectory" folder and the application is in the "dir2" folder. So that when the whole folder is distributed and the user where ever place the folder can run the programme. Regards, Ejaz
Zedna Posted February 3, 2009 Posted February 3, 2009 (edited) Look at @ScriptDir and similar @constants - macros Edited February 3, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators big_daddy Posted February 3, 2009 Moderators Posted February 3, 2009 I gave an example of using relative paths here.
Ejaz Posted February 3, 2009 Author Posted February 3, 2009 Look at @ScriptDir and similar @constants - macrosThanks much, For those who are new like me, following code work for me$App = @ScriptDir & "\dir2\app2.exe"Respect!!!Ejaz
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