czhe Posted February 4, 2010 Share Posted February 4, 2010 Hi all,This is my first time using AutoIt, so please bare with meI've played around with the Run command and I'm able to start all kinds of .exe files in any directory. However, I can't do it for 3DMark06. I know the program is working as I can run it manually and execute any test, but when I use the script:Run("C:\Program Files (x86)\Futuremark\3DMark06\3DMark06.exe")When I run this code I get this error pop-up:I'm not sure what it's trying to do here.Any help is appreciated . Thanks!czhe Link to comment Share on other sites More sharing options...
omikron48 Posted February 4, 2010 Share Posted February 4, 2010 (edited) Try setting the working directory parameter so it runs at the correct place. As it is, when you use run, the called program's owrking directory is the same as the calling script's. Run("C:\Program Files (x86)\Futuremark\3DMark06\3DMark06.exe", "C:\Program Files (x86)\Futuremark\3DMark06") EDIT: Bah. Too slow in typing. Edited February 4, 2010 by omikron48 Link to comment Share on other sites More sharing options...
czhe Posted February 5, 2010 Author Share Posted February 5, 2010 3DMark06 is trying to find the files it needs in order to run, but it is looking in the wrong place. You need to set the proper working directory in your Run() statement. Try setting the working directory parameter so it runs at the correct place. As it is, when you use run, the called program's owrking directory is the same as the calling script's. Run("C:\Program Files (x86)\Futuremark\3DMark06\3DMark06.exe", "C:\Program Files (x86)\Futuremark\3DMark06") EDIT: Bah. Too slow in typing. Thanks very much to you both! czhe 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