Jump to content

File path Errors


Guest emergent
 Share

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?

Link to comment
Share on other sites

  • Developers

What am I doing wrong?

<{POST_SNAPBACK}>

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

  • 4 weeks later...

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!

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...