Start a Batch File Completely Hidden

Introduction: Start a Batch File Completely Hidden

About: I enjoy anything to do with computers. I have made some interesting scripts, and I am constantly improving my skill set. One day I hope to become a programmer, although in what category is still a mystery (...

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Be the First to Share

    Recommendations

    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020
    • First Time Author Contest

      First Time Author Contest

    3 Discussions

    0
    DawidR4
    DawidR4

    2 years ago

    Step 3 alternative:
    Create a batch file with:

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

    0
    DawidR4
    DawidR4

    Reply 2 years ago

    correction:
    Step 3 alternative:
    Create a batch file with:

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