Creating task in batch with multiple triggers

Discussion in 'Scripting' started by timesurfer, Aug 9, 2011.

  1. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,069
    270
    #1 timesurfer, Aug 9, 2011
    Last edited by a moderator: Apr 20, 2017
    I want to combine these two triggers

    Code:
    schtasks /create /tn "Hybrid" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc %onstart% /ru "" >NUL
    
    schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc %daily% /mo 1 /ru "" >NUL
    Into one task with both triggers?

    Is this possible?

    Here is XML to import to see it in TS

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...