Possible Duplicate:
Run a .bat file in a scheduled task without a window

In Windows 7, I have a scheduled task running a console application in a CMD window. It runs every day at 12 o'clock. When it runs, it opens a CMD window that is not focused, however, it appears on top of the currently used application.

I would like this CMD window to either start up minimized or run in the background completely (with NO visible windows at all).

How to do this?

marked as duplicate by user9517 Mar 6 '12 at 15:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can try this: START /MIN cmd.exe

  • OK, so my program/script is right now "foo.exe" and arguments are "-z c". So how/where do I add START /MIN? – ervingsb Mar 7 '12 at 9:47
  • This is the Action dialog, I need to fill out: i.imgur.com/ma2qZ.png – ervingsb Mar 7 '12 at 9:56
  • It will still create a console window for the cmd process, so this will work if you don't mind a black window flash on screen, otherwise you need another solution. `:-` – Synetech Oct 2 '15 at 20:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.