Jump to content
Sign in to follow this  
theguy0000

default working dir in run ( )

Recommended Posts

theguy0000

Run ( "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )

I want to be able to specify a flag but leave the working dir as the way it is. What should I put as the working dir?

(what does the working dir even do anyway?)


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
greenmachine

You can use @WorkingDir.

Share this post


Link to post
Share on other sites
SmOke_N

Run ( "filename" [, "workingdir" [, flag[, standard_i/o_flag]]] )

I want to be able to specify a flag but leave the working dir as the way it is. What should I put as the working dir?

(what does the working dir even do anyway?)

@WorkingDir

Current/active working directory. (Result does not contain a trailing backslash)


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
theguy0000

but that is for the current script's working dir, not the new program's working dir. Or am I wrong?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
Valuater

but that is for the current script's working dir, not the new program's working dir. Or am I wrong?

its for the program you are calling/trying to run

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
theguy0000

oh, ok. thanks.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
MHz

but that is for the current script's working dir, not the new program's working dir. Or am I wrong?

Nope, that is @ScriptDir that is your scripts directory. @WorkingDir can be anything that is set with FileChangeDir(), would be the script directory normally if you click on your file to start, or even the root of your system drive, if your script is started from the registry. Fact is, you should not use @WorkingDir, unless your script is aware of where it's current @WorkingDir is.

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.