Jump to content

How to set one more Workingdir in Run()


konan
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...