Jump to content
Sign in to follow this  
jestermgee

FileInstall() - To root directory?

Recommended Posts

jestermgee

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
DCCD

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
jestermgee

@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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.