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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -