diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:15:39 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:15:39 +0200 |
commit | d2854834e18443876c8f75e0a7f3b88d1d549fc4 (patch) | |
tree | e967b628081e50abc7c34cd264e6586271c7e728 /BUILD/RunSilent.vbs | |
parent | 4.1 (diff) | |
download | FreeFileSync-d2854834e18443876c8f75e0a7f3b88d1d549fc4.tar.gz FreeFileSync-d2854834e18443876c8f75e0a7f3b88d1d549fc4.tar.bz2 FreeFileSync-d2854834e18443876c8f75e0a7f3b88d1d549fc4.zip |
4.2
Diffstat (limited to 'BUILD/RunSilent.vbs')
-rw-r--r-- | BUILD/RunSilent.vbs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/BUILD/RunSilent.vbs b/BUILD/RunSilent.vbs new file mode 100644 index 00000000..a6fe4f6b --- /dev/null +++ b/BUILD/RunSilent.vbs @@ -0,0 +1,17 @@ +set argIn = WScript.Arguments +num = argIn.Count + +if num = 0 then + WScript.Echo "Call a Windows batch file (*.cmd, *.bat) without showing the console window" & VbCrLf & VbCrLf &_ + "Command line:" & VbCrLf & "WScript RunSilent.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 |