Vbs Run With Cscript

[Solved] Vbs Run With Cscript | Vb - Code Explorer | yomemimo.com
Question : vbs run with cscript

Answered by : httpsgithubcomgarzj

Set oShell = CreateObject("WScript.Shell")
If Not LCase(Right(WScript.FullName, 12)) = "\cscript.exe" Then For Each Arg In WScript.Arguments If InStr(Arg, " ") Then Arg = """" & Arg & """" Str = Str & " " & Arg Next cmd = "cscript //nologo """ & WScript.ScriptFullName & """ " & Str oShell.Run cmd, 0, false WScript.Quit
End If

Source : | Last Update : Mon, 24 Aug 20

Answers related to vbs run with cscript

Code Explorer Popular Question For Vb