Start a Batch File Completely Hidden

by Prof. Pickle in Circuits > Computers

96947 Views, 22 Favorites, 0 Comments

Start a Batch File Completely Hidden

invis.jpg
I answered someones question about starting a batch file completely hidden (I think it still shows in task manager), and I realized that there were no instructables on it. Now, this is not my method, I had no idea you could do this. I only made this to help others seeking the same answer. Here is a link to the forum topic about it.

Now the batch file should have been run almost completely hidden. Hope this helps.

Batch File

dos.jpg
Now, make the batch file that you want run (remember not to make it rely on user interaction or text).
For this instructable, I will be using a file that contains this:
MSG * It worked
...and it will be saved as Hidden.bat

VBscript

vbs.jpg
The next thing you need to create is the VBscript that will aid you in this process.
It should contain this:
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
Save it as whatever you want, for this instructable I will save it as "invisible.vbs"

Command Prompt

command.gif
Now to put it all together.
Go into command prompt and type in this:
wscript.exe "C:\File_Path\invisible.vbs" "C:\File_Path\Hidden.bat"

The batch file should hopefully run almost completely hidden. 

THE END