I’m sure we’ve all came across a time when we were programming some type of beneficial or data mining script/batch file that we didn’t want the user to see.  Since there’s no option for running a batch file as hidden, it requires a small hack utilizing vbscript.

To hide batch files when you run them:

1. Create a vbscript file called start.vbs with the following code:

CreateObject(”Wscript.Shell”).Run “”"” & WScript.Arguments(0) & “”"”, 0, False

2. To run your file type: start.vbs <name of file>.bat in a command window.

Easy and efficient!  It still shows in the task process list, but the window is now hidden.