making a schedueled task run mnimized

0

I have a batch file that I run once an hour via Windows Scheduler. Unfortunately, it can take several tens of minutes for this batch file to finish running.

Is there a way to make the batch file start out minimized?

Thanks!

neubert

Posted 2013-05-02T04:01:13.323

Reputation: 3 991

Answers

1

if you don't care about seeing the batch at all, just schedule it to run under a different user account. you can create a user for that purpose, or run it under one of the existing service user accounts (NETWORK SERVICE, LOCAL SERVICE, etc). the terminal won't appear on your desktop.

if you do want to be able to watch it, but just want to start minimized, check out 'start /min'

cmd.exe /c start /min example.bat ^& exit

Frank Thomas

Posted 2013-05-02T04:01:13.323

Reputation: 29 039

Can also hide the cmd window using VBS. – Karan – 2013-05-03T16:48:56.523