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 characters
// 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 |