Sign in to follow this  
Followers 0
jestermgee

FileInstall() - To root directory?

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0