How to start scheduled task in minimized cmd window?

7,477

You can try this: START /MIN cmd.exe

Share:
7,477

Related videos on Youtube

ervingsb
Author by

ervingsb

Updated on September 18, 2022

Comments

  • ervingsb
    ervingsb over 1 year

    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?

  • ervingsb
    ervingsb about 12 years
    OK, so my program/script is right now "foo.exe" and arguments are "-z c". So how/where do I add START /MIN?
  • Synetech
    Synetech over 8 years
    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. `:-`