How to implement Rcmd.vbs remote script
This article mainly introduces how to achieve Rcmd.vbs remote script, the article is very detailed, has a certain reference value, interested friends must read it!
The code is as follows:
On Error Resume Next
Set outstreem=Wscript.stdout
If (LCase (Right (Wscript.fullname,11)) = "Wscript.exe") Then
Set objShell=Wscript.CreateObject ("Wscript.shell")
ObjShell.Run ("cmd.exe / k cscript / / nologo" & Chr (34) & Wscript.ScriptFullName&Chr (34))
Wscript.Quit
End If
If Wscript.arguments.Count