how to minimize the command prompt when running a batch script?
batch-file, windows
Solution
This little batch code should do what you need.
http://zoombody.com/articles/run-a-batch-script-minimized
The relevant code then needs to be placed at the top of your script:
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
rem Anything after here will run in a minimized window
Here is more information about `"%~dpnx0"`.
Problem
anybody know how to minimize the command prompt when running a batch script in Windows 3.11? in Windows XP, there have a command ``` start /min start.bat ``` to minimize the cmd prompt, is it have similiar command in MSDos 6.22?