When you run batch files *.bat, a black console window opens, in which you can see the progress of commands from the bat file. If you do not want this window to appear on the display, you can hide it in the following ways.
Instructions
Step 1
The easiest way. Create a shortcut for your bat file. Right click on the shortcut and open its properties. Set "Window: Minimized to Icon". Click Apply and OK. In the future, run not the file itself, but its shortcut. The window will be displayed minimized in the taskbar.
Step 2
Everything works, but there is an icon for your file on the taskbar, when you click on it, the console window with a command line reappears. If this does not suit you and you need the window to be completely invisible, then use the method described below. Just first think about how, if necessary, you will then stop a running batch file that is not visible anywhere at all. However, batch files usually terminate on their own after all commands have been executed. But it happens that an endless cycle of tracking some event in the system is spinning in them, and it itself will not stop.
Step 3
Use the cmdow program. This is a very small free utility, about 15 KB in size. You can download it here: https://white55.narod.ru/soft/cmdow.zip. After unpacking the archive, it is immediately ready for use, no installation is required. It can perform several functions, but we will consider hiding cmd with its help
Step 4
To make the console window invisible when running a batch file, place the Path / cmdow @ / HID line in it. Where "Path" is the path to the folder where the cmdow is located, for example, "C: / MyFiles". The HID (hidden) command hides the window. If you replace it with MIN (minimized), then the window will be minimized to the icon on the taskbar, as in step 1.
Step 5
If you want the console window to be invisible right after startup, make the above line the first in your batch file. The window will briefly flicker and disappear. But you can do it differently. Place a line with this command after some of the commands and you will see the process of executing these commands, and only after executing cmdow @ / HID the console window will disappear from the screen.