summaryrefslogtreecommitdiff
path: root/BUILD/HideConsole.vbs
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
commit88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 (patch)
treec6c5babb49b90293380106b81ae5c446959ac70f /BUILD/HideConsole.vbs
parent5.3 (diff)
downloadFreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.gz
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.bz2
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.zip
5.4
Diffstat (limited to 'BUILD/HideConsole.vbs')
-rw-r--r--BUILD/HideConsole.vbs17
1 files changed, 17 insertions, 0 deletions
diff --git a/BUILD/HideConsole.vbs b/BUILD/HideConsole.vbs
new file mode 100644
index 00000000..6a178410
--- /dev/null
+++ b/BUILD/HideConsole.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 HideConsole.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
bgstack15