Jump to content

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?

Thanks.

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...