Run a .bat file in a scheduled task without a window
Posted
by
Tom Dunham
on Server Fault
See other posts from Server Fault
or by Tom Dunham
Published on 2009-05-17T09:00:51Z
Indexed on
2011/11/11
17:58 UTC
Read the original article
Hit count: 329
I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see.
I managed to make the window appear minimized by making the scheduled job run
cmd /c start /min mybat.bat
but that gives me a new command window every hour. I was surprised by this, given cmd /c "Carries out the command specified by string and then terminates" - I must have misunderstood the docs.
Is there a way to run a batch script without it popping up a cmd window?
© Server Fault or respective owner