Ghost21 Posted August 20, 2007 Share Posted August 20, 2007 If I have RunAsSet before the run wait .. even with Administrative privilages RunWait doesn't run properly... it keep saying " The directory name is invalid. " ?????????? As soon as I remove the runasset it works.. perfect.. except when I goto a users computer they are unable to run the program.. Help Please!!!!! RunAsSet("user","domain","password",0) MsgBox(4000,"Computer Update","Please wait...",3) RunWait("netsh interface ip set address local source=dhcp", "") sleep(1000) RunWait("netsh interface ip set dns ""Local Area Connection"" dhcp","") sleep(1000) RunWait("netsh interface ip delete wins ""Local Area Connection"" all","") Sleep(1000) MsgBox(4000,"Computer Update","Complete...",3) RunAsSet() Link to comment Share on other sites More sharing options...
GaryFrost Posted August 20, 2007 Share Posted August 20, 2007 try RunAsSet("user","domain","password") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Ghost21 Posted August 20, 2007 Author Share Posted August 20, 2007 try RunAsSet("user","domain","password") Nope same result.... Link to comment Share on other sites More sharing options...
GaryFrost Posted August 20, 2007 Share Posted August 20, 2007 Nope same result.... Suggest running a command prompt after the RunAsSet i.e. RunWait(@ComSpec & ' /k ') Then you should be able to debug the problem. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Ghost21 Posted August 20, 2007 Author Share Posted August 20, 2007 (edited) Suggest running a command prompt after the RunAsSet i.e. RunWait(@ComSpec & ' /k ') Then you should be able to debug the problem. Frekin what a pain in the A$$... If you do a RunWait inside of a RunAsSet you can't just have RunWait("netsh interface ip set address local source=dhcp") you actually have to have RunAsSet("user","domain","password") RunWait("netsh interface ip set address local source=dhcp", @WindowsDir,@SW_HIDE) with the @windowsdir Starts transplanting his hair back in after I yanked it all out from such a stupid error... Edited August 20, 2007 by Ghost21 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