Guest emergent Posted August 9, 2005 Share Posted August 9, 2005 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 More sharing options...
Developers Jos Posted August 9, 2005 Developers Share Posted August 9, 2005 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 More sharing options...
Guest emergent Posted August 9, 2005 Share Posted August 9, 2005 Dooh! Forgot the other argument. Thanks. Link to comment Share on other sites More sharing options...
Danny35d Posted August 9, 2005 Share Posted August 9, 2005 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 More sharing options...
lubm Posted September 1, 2005 Share Posted September 1, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now