Moderators JLogan3o13 Posted August 23, 2016 Moderators Share Posted August 23, 2016 (edited) The way you have it in your last post is the way it should look. Have you tried it? As for syntax, you really need to crack open the help file and look... Edited August 23, 2016 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
pluto41 Posted August 23, 2016 Share Posted August 23, 2016 Local $strCmd = @ScriptDir & "\Setup.exe" ; RunAsWait("Administrator", "MyDomain", "MyPassword", $RUN_LOGON_NETWORK, $strCmd) ; Line temporary disabled. ConsoleWrite ($strCmd & @CRLF) First make sure the command actually runs. Copy the ConsoleWrite output from the script above and paste it into the Windows Run Box ( Windows Key + R) If the command does not run put quotes around it. Something like this: "c:\My Temp Dir\Setup.exe". Experiment till your'e command runs Ok from the Windows Run Box. After that adjust the AutoIT script to the correct path and run it again. If you need Quotes look for something like this: Local $strCmd = Chr (34) & "C:\My Temp Dir\Setup.exe" & Chr (34) 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