summaryrefslogtreecommitdiff
path: root/BUILD/Invisible.vbs
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
commit8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 (patch)
tree975c6e590c31e56007006a23e7b15d0245d75b08 /BUILD/Invisible.vbs
parent3.6 (diff)
downloadFreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.gz
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.bz2
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.zip
3.7
Diffstat (limited to 'BUILD/Invisible.vbs')
-rw-r--r--BUILD/Invisible.vbs17
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
bgstack15