konan Posted September 9, 2004 Posted September 9, 2004 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?
sugi Posted September 9, 2004 Posted September 9, 2004 (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 September 9, 2004 by sugi
Developers Jos Posted September 9, 2004 Developers Posted September 9, 2004 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.
konan Posted September 9, 2004 Author Posted September 9, 2004 Suqi's method is right, thank you! and I have know more information about Env environment.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now