jestermgee Posted June 11, 2009 Share Posted June 11, 2009 How can I simply extract included files to the location I run the script from? I am required to enter in the destination location which is "unknown" as the script will run from wherever and I want all extracted files to be placed in the same directory. Creating a destination "\" just installs to the root C drive. Link to comment Share on other sites More sharing options...
DCCD Posted June 11, 2009 Share Posted June 11, 2009 How can I simply extract included files to the location I run the script from? I am required to enter in the destination location which is "unknown" as the script will run from wherever and I want all extracted files to be placed in the same directory. Creating a destination "\" just installs to the root C drive. @ScriptDir ;Directory containing the running script. (Result does not contain a trailing backslash) @ScriptFullPath ;Equivalent to @ScriptDir & "\" & @ScriptName [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
jestermgee Posted June 11, 2009 Author Share Posted June 11, 2009 @ScriptDir ;Directory containing the running script. (Result does not contain a trailing backslash) @ScriptFullPath ;Equivalent to @ScriptDir & "\" & @ScriptName Man that was quick... I also found and tested: $rootdir = @AutoItExe which does what I need. Thanks 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