h711 Posted September 4, 2008 Share Posted September 4, 2008 (edited) I am automating an installer, but having a problem due to relative address. The installer I am automating is in D:\ drive. But the script is located in C:\ drive. The installer use relative path to locate some file, which caused the problem. If I manually click on the installer on D:\ drive, all relative path works fine. But since the script is in C:\, at some point this logic breaks. Here is an example, on cmd: d:\installer.exe (this works, as it launched from native location) c:\d:\installer.exe (this still can launch the installer, but due to a different launch location, some part of the logic will break) Is there a way to let the script run from the same path as installer? Since this installer is on a CD, I cannot put the exe to that location. Thanks for the help. Edited September 4, 2008 by h711 Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 5, 2008 Share Posted September 5, 2008 Change the working directory. Link to comment Share on other sites More sharing options...
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