Skip to content

Instantly share code, notes, and snippets.

@avalon1610
avalon1610 / gist:361a58e00b14600d476b80b201206bed
Created May 4, 2018 03:11
Run a batch file in a completely hidden way
// 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