Jump to content

Recommended Posts

Guest emergent
Posted

Ok I am figureing this scripting out fairly easily. However, when I try to run a file with a path such as: C:\Program Files\Microsoft Office\...; I get an error telling me the directoy path is invalid. I know the path is correct. Here is my code

RunAsSet ( "username", "domain", "password")
RunWait( "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.exe", @SW_MAXIMIZE)
RunAsSet();<-- To restore initial account

What am I doing wrong?

Guest emergent
Posted

Dooh! Forgot the other argument. Thanks.

Posted

I was having the same problem. Try this:

RunAsSet ( "username", "domain", "password")

RunWait( "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.exe", "C:\Program Files\Microsoft Office\OFFICE11", @SW_MAXIMIZE)

RunAsSet();<-- To restore initial account

Good luck!

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
  • 4 weeks later...
Posted

Hi, I was having the same problem too.

This is my script:

RunAsSet("adminname", "domain", "password")

RunWait("regedit.exe", "", @SW_MAXIMIZE)

RunAsSet()

And result:

RunWait("regedit.exe", "", @SW_MAXIMIZE)

Error: Unable to execute the external program.

The directoy path is invalid.

I have AutoIT version 3.1.0 and I think that this command in this version is wrong!

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
  • Recently Browsing   0 members

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