Sign in to follow this  
Followers 0
konan

How to set one more Workingdir in Run()

5 posts in this topic

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



#2 ·  Posted (edited)

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

You could also try to set the current directory with FileChangeDir ( "path" ) before starting the program....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

thank you ,i will have a try

Share this post


Link to post
Share on other sites

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  
Followers 0