How to hide DOS window in the taskbar when running batch scripts

I hope it doesn’t require .Net framework since I’m not going to install it, but is there a way to hide batch scripts from appearing in the taskbar? For XP.

Let’s say I execute abc.bat to perform some commands, but I hate seeing abc.bat in the taskbar. I’m thinking maybe there’s something in making a .vbs (VBScript) file to do it, but I don’t know.


Looks like I found the almost-perfect answer:

the process take 3 files. one launch.bat one invis.vbs and one (your program)

in launch.bat(this files runs your program silently) put in…

wscript.exe “C:\yourpath\invis.vbs” “your file.bat”

in invis.vbs put…

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


It would be better if only one or two files at most would be needed…That plus I do see that abc.bat appearing in the taskbar for the first split second.

Without some shenannigans, you’ll always have that split second blip, as the command interpreter has to run to execute the .bat file.

Ewen :slight_smile:

Ok I can live that then and without the shenannigans (:LGH)