Hide CMD window after execute command line by the RUN

Num Educ picture Num Educ · Feb 27, 2016 · Viewed 12.7k times · Source

How to hide CMD/BAT (the black box) WITHOUT using Vbscript, I dont like using VBSCRIPT because it slows down application before it autorun. So if you have a code to put into batch or CMD to hide the CMD/Bat file WITHOUT using VBScrpit. please let me know. thanks

Answer

Alpha_Pi picture Alpha_Pi · Feb 28, 2016

This might help you:

Solution #1

Use the /min slash after START command when starting your bat-file. This will start it with a minimized window. Example: START /min c:\mypath\mybatfile.bat

Solution #2

Create a shortcut to CMD.EXE. Open up Properties box of the shortcut.
In shortcut-tab change "run" to "minimized". In the target address (path and name of CMD) append path and name of your bat-file.

If you now doubleclick the shortcut, it should run CMD minimized, with no window showing, which in turn should start your bat-file.