Batch - Conditionally minimize the current window -
i have batch file provides user menu. works fine.
i permit commandline parameter run batch in automated mode (no need menu) - working fine. auto mode runs thru various menu options in prescribed manner.
example: mybatch.bat -a
request: when "-a" parameter passed-in, i'd auto-run batch file in minimized mode (i.e., in taskbar), exit, silently user.
any suggestions?
thank you!
you invoke powershell minimize console window.
for %%i in (%*) if /i "%%~i"=="-a" ( powershell -window minimized -command "" )
Comments
Post a Comment