howdytest Posted June 12, 2008 Share Posted June 12, 2008 I'm writing my first script and i can't seem to get .exe's to run. I'm not an experienced programmer, but this seems simple enough. Run ("C:\Program Files\Microsoft Office\Office10\Excel.exe", @SW_MAXIMIZE) The above is the way i've seen it coded in other scripts, but even this doesn't work. I've tried: Run ("excel.exe" , "C:\Program File\Microsoft Office\Office10\", @SW_MAXIMIZE) But that doesn't work either. The only problem i can think of is that autoit is on a different partition than excel, but autoit doesn't run programs on it's own partition either. What am i doing wrong? Thanks. Link to comment Share on other sites More sharing options...
k3v Posted June 12, 2008 Share Posted June 12, 2008 (edited) parameter 2 is Working Directory... try this... Run ("C:\Program Files\Microsoft Office\Office10\Excel.exe","", @SW_MAXIMIZE) your second example might have worked, except for "Program File" (instead of Files) Edited June 13, 2008 by k3v Link to comment Share on other sites More sharing options...
howdytest Posted June 13, 2008 Author Share Posted June 13, 2008 thanks bud 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