diff options
Diffstat (limited to 'BUILD/Invisible.vbs')
-rw-r--r-- | BUILD/Invisible.vbs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/BUILD/Invisible.vbs b/BUILD/Invisible.vbs new file mode 100644 index 00000000..47c60726 --- /dev/null +++ b/BUILD/Invisible.vbs @@ -0,0 +1,17 @@ +set argIn = WScript.Arguments +num = argIn.Count + +if num = 0 then + WScript.Echo "Call a batch file silently" & VbCrLf & VbCrLf &_ + "Usage: WScript Invisible.vbs MyBatchfile.cmd <command line arguments>" + WScript.Quit 1 +end if + +argOut = "" +for i = 0 to num - 1 + argOut = argOut & """" & argIn.Item(i) & """ " +next + +set WshShell = WScript.CreateObject("WScript.Shell") + +WshShell.Run argOut, 0, True
\ No newline at end of file |