You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
455 B
14 lines
455 B
6 years ago
|
|
||
|
'from http://superuser.com/questions/140047/how-to-run-a-batch-file-without-launching-a-command-window/390129
|
||
|
If WScript.Arguments.Count >= 1 Then
|
||
|
ReDim arr(WScript.Arguments.Count-1)
|
||
|
For i = 0 To WScript.Arguments.Count-1
|
||
|
Arg = WScript.Arguments(i)
|
||
|
If InStr(Arg, " ") > 0 Then Arg = chr(34) & Arg & chr(34)
|
||
|
arr(i) = Arg
|
||
|
Next
|
||
|
|
||
|
RunCmd = Join(arr)
|
||
|
CreateObject("Wscript.Shell").Run RunCmd, 0 , True
|
||
|
End If
|
||
|
|