How to hide CMD shell window?

when I start, I have a bat file that launches the usual things for me

however, the black console appears and remains open until it is all over.

anyway to hide it and run in the background? therefore, it should not be displayed with the minimum or system tray.

+3
source share
6 answers

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

'launch.vbs
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "mybatch.bat", 0
WshShell = Null
+5
source

Create a shortcut for the file. In a new shortcut: Right-click → Properties. Click the Shortcut tab and select Run: Minimized. (It is assumed that you are using WinXP).

+2

, . , quiet.exe

, quiet.exe program params_if_has.

: quiet.exe PHP .php

+2

, , " " .

0

.cmd .bat.

, .exe try:

start "" "C:\Program Files\SomeProg\someprog.exe"

. "start" .

0

I once had a small program that could hide windows based on their name. Therefore, my starting party first set a unique title with title, and then called up another program to hide the window with the specified name. It worked fine, but it requires a little programming.

If you do not want to go this way, you should use the task scheduler, as noted in message tr4656.

0
source

Source: https://habr.com/ru/post/1733095/


All Articles