Kerean Posted October 7, 2008 Share Posted October 7, 2008 Hi all, I've opened a new thread as this is a different problem from my original thread. I've already got the RUNAS command syntax down pat. However, after restarting the computer and trying again, the compiled exes no longer work! Running the Au3 script itself using F5 fails to work as well. For easy reference, here is the current script to test launch notepad.exe: RunAs ("Administrator", "@ComputerName", "password", 0, "C:\Windows\notepad.exe" , "C:\Windows" , @SW_MAXIMIZE) The strange thing is that there appears to be no error: >Exit code: 0 Time: 0.108 But, the notepad program (or any program I set) fails to run. Any help would be appreciated. Link to comment Share on other sites More sharing options...
enaiman Posted October 7, 2008 Share Posted October 7, 2008 Here is your error: "@ComputerName" Once you use quotes the variable @ComputerName becomes a string. Correct line: RunAs ("Administrator", @ComputerName, "password", 0, "C:\Windows\notepad.exe" , "C:\Windows" , @SW_MAXIMIZE) SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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