Jump to content
Sign in to follow this  

Run () help

Recommended Posts


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?


Share this post

Link to post
Share on other sites

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.