Created
May 4, 2018 03:11
-
-
Save avalon1610/361a58e00b14600d476b80b201206bed to your computer and use it in GitHub Desktop.
Run a batch file in a completely hidden way
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment