Jump to content
Sign in to follow this  
konan

How to set one more Workingdir in Run()

Recommended Posts

konan

How to set one more Workingdir in Run()

I Want Run Acdsee6, but it will use dllfile in "C:\Program Files\Common Files\ACD Systems" and "C:\Program Files\Common Files\ACD Systems\EN", So I need set two workingdir.

If i set one workingdir, it will say need dllfile in another dir.

certainly, i can use run .lnk or copy dll to ACDSee6's dir, But can AutoIt set one more workingdir?

Share this post


Link to post
Share on other sites
sugi

How to set one more Workingdir in Run()

  I Want Run Acdsee6, but it will use dllfile in "C:\Program Files\Common Files\ACD Systems" and "C:\Program Files\Common Files\ACD Systems\EN", So I need set two workingdir.

  If i set one workingdir, it will say need dllfile in another dir.

certainly, i can use run .lnk or copy dll to ACDSee6's dir, But can AutoIt set one more workingdir?

<{POST_SNAPBACK}>

There can only be one working directory. I guess one way might be to change the PATH environment variable to also include the second directory.

Untested:

EnvSet('PATH', EnvGet('PATH') & ';C:\Program Files\Common Files\ACD Systems\EN')

But if ACDSee cannot find it's own files I guess the installation is corrupted.

Edited by sugi

Share this post


Link to post
Share on other sites
konan

thank you ,i will have a try

Share this post


Link to post
Share on other sites
konan

Suqi's method is right, thank you!

and I have know more information about Env environment.

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  

×