Sign in to follow this  
Followers 0
Guest emergent

File path Errors

5 posts in this topic

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



What am I doing wrong?

<{POST_SNAPBACK}>

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Dooh! Forgot the other argument. Thanks.

Share this post


Link to post
Share on other sites

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

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  
Followers 0