Jump to content

Recommended Posts

Posted (edited)

I want to delete folder d:music as the admin I try the RunAsWait But there are something wrong

RunAsWait("usenamer",@LogonDomain,"Password,0,@ComSpec & ' rd /s/q/f c:Temp,"","",0)

Edited by petercao
Posted

Im not sure your syntax is right

RunAsWait("usenamer",@LogonDomain,"Password,0,@ComSpec & ' rd /s/q/f c:\Temp)

"usenamer" needs to be an actual username or use @UserName which is the ID of the currently logged on user.

"Password needs to add a missing " and it needs to be the proper password of the user concerned

Im not sure about the comspec bit so trail and error is needed

Posted

Im not sure your syntax is right

RunAsWait("usenamer",@LogonDomain,"Password,0,@ComSpec & ' rd /s/q/f c:Temp)

"usenamer" needs to be an actual username or use @UserName which is the ID of the currently logged on user.

"Password needs to add a missing " and it needs to be the proper password of the user concerned

Im not sure about the comspec bit so trail and error is needed

Thank you for your support

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
×
×
  • Create New...