Is there a way to have the task scheduler run my batch file minimized. I thought I could do something like the following but does not work. I tried without those quotes as well.
Asked
Active
Viewed 2.2k times
1 Answers
16
Program/script: %windir%\system32\cmd.exe
Add arguments: /C start "" /MIN C:\temp\keepwarm.bat
For explanation, read about (internal) START command or run start /? from an open command prompt.
Note: if the (minimized) window stays open after the bat script ends then use
Add arguments: /C "start "" /MIN C:\temp\keepwarm.bat ^&exit"
(take heed of a space between path to script and ^&exit - edited due to Viktor Liashenko's useful comment).
You can enclose path to script in a pair of double quotes as follows:
Add arguments: /C "start "" /MIN "C:\temp\keepwarm.bat" ^&exit"
This solves problem of space(s) in path to script…
JosefZ
- 13,855
