I have this bat file and I want to minimize the cmd window when I run it:
@echo off cd /d C:\\leads\\ssh call C:\\Ruby192\\bin\\setrbvars.bat ruby C:\\leads
Using PowerShell you can minimize from the same file without opening a new instance.
powershell -window minimized -command ""
Also -window hidden and -window normal is available to hide completely or restore.
-window hidden
-window normal
source: https://stackoverflow.com/a/45061676/1178975