Created
May 4, 2018 03:11
-
-
Save avalon1610/361a58e00b14600d476b80b201206bed to your computer and use it in GitHub Desktop.
Revisions
-
avalon1610 created this gist
May 4, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // from "https://superuser.com/a/62646" // Save this one line of text as file invisible.vbs: CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False // To run any program or batch file invisibly, use it like this: wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat" // To also be able to pass-on/relay a list of arguments use only two double quotes CreateObject("Wscript.Shell").Run "" & WScript.Arguments(0) & "", 0, False