Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to hide cmd shell window?

Tags:

windows

cmd

on start up i have a bat file run routine things for me

however, the black console pops up and stays open until everything is finished....

anyway to hide it and run it in background ? so it shouldn't appear minimized or system tray.

like image 348
bkbkbk Avatar asked Feb 17 '10 00:02

bkbkbk


1 Answers

You can use a VBS script to achieve this. Either write all your code as VBS, or call your batch file like this:

'launch.vbs
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "mybatch.bat", 0
WshShell = Null
like image 176
Craig Avatar answered Nov 15 '22 07:11

Craig