Start a Batch File Completely Hidden

96K215

Intro: Start a Batch File Completely Hidden

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.

STEP 1: Batch File

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

STEP 2: VBscript

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"

STEP 3: Command Prompt

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

4 Comments

So being hidden relies on vbs.
Step 3 alternative:
Create a batch file with:

@echo off
wscript.exe "C:\File_Path\invisible.vbs" "C:\File_Path\Hidden.ba
correction:
Step 3 alternative:
Create a batch file with:

@echo off
wscript.exe "C:\File_Path\invisible.vbs" "C:\File_Path\Hidden.bat