Wednesday, March 19, 2014

How to install (reuse) a same windows task

    1. Select the task which you want to get a back up.  And click on the Export link



    1. Then export the task as a xml file.
    1. Ten again you should write a .bat file to load this xml file to the Windows task scheduler.

    Your batch file will be something like this:

    @echo off
    echo Importing All Tasks
    echo.
    schtasks /create /RU SYSTEM /TN "php_mail_sender" /XML "C:\wamp\www\TS\php_mail_sender.xml"
    echo.
    echo Importing Done
    echo.
    Pause
    


  1. Then by simply run this batch file you can add this task to your Scheduler.

No comments:

Post a Comment