Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide CMD window after execute command line by the RUN

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

like image 302
Num Educ Avatar asked Sep 11 '25 00:09

Num Educ


1 Answers

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.

like image 52
Alpha_Pi Avatar answered Sep 13 '25 16:09

Alpha_Pi