batch open file without showing it code example
Example: windowless cmd
1. WIN-key + R --> %appdata%
2. create a new text document called "invisible.vbs"
3. With a text editor, edit "invisible.vbs". Paste the following line, then save and close:
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
4 create a new shortcut to run:
A) (command e.g. open paint): wscript.exe %appdata%invisible.vbs "CMD /k mspaint"
B) (run .bat file): wscript.exe %appdata%invisible.vbs "CMD /k C:\full\path\to\myFile.bat"