Sign in to follow this  
Followers 0
Ghost21

** BUG ** Runaset & Runwait

5 posts in this topic

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()

Share this post


Link to post
Share on other sites



try

RunAsSet("user","domain","password")

Nope same result....

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Ghost21

Share this post


Link to post
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
Sign in to follow this  
Followers 0