Jump to content
Sign in to follow this  
Guest emergent

File path Errors

Recommended Posts

Guest emergent

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?

Share this post


Link to post
Share on other sites
Guest emergent

Dooh! Forgot the other argument. Thanks.

Share this post


Link to post
Share on other sites
Danny35d

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

Share this post


Link to post
Share on other sites
lubm

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!

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  

×