Need help with Windows 7 Task Scheduler "argument/switch"...

Discussion in 'Windows 7' started by xscess, Sep 4, 2010.

  1. xscess

    xscess MDL Senior Member

    Jul 27, 2009
    368
    365
    10
    I've created a task of copying files from a folder to another to be triggered at every 30 minutes with a batch file. Now it runs just fine except a little problem that every time it runs, cmd window flashes and goes away. How can I hide it please...

    I have checked 'Hidden' under General tab of task properties... I guess I need to 'Add arguments' under > Actions tab > Edit Action... ?

    OR

    Do I have to add any switch/argument in batch file itself? Batch file is:

    @echo OFF
    echo n|xcopy C:\Users\Username\Folder-A C:\Users\Username\Folder-B /d


    Many thanks!
     
  2. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,256
    674
    60
    Change user to SYSTEM, that will make it run in non-interactive mode.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. xscess

    xscess MDL Senior Member

    Jul 27, 2009
    368
    365
    10
    Many thanx, I just did it. But just for the knowledge... was it possible thru any argument/switch or no?
     
  4. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,256
    674
    60
    /min argument will start the cmd window minimized.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. xscess

    xscess MDL Senior Member

    Jul 27, 2009
    368
    365
    10
    thanks again :biggrin: