Sign in to follow this  
Followers 0
howdytest

Run () help

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by k3v

Share this post


Link to post
Share on other sites

thanks bud

Share this post


Link to post
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
Sign in to follow this  
Followers 0