sequential task scheduling


Recommended Posts

I was wondering if there is a way to schedule tasks to run sequentially after each other. Like say i want to schedule all my service programs to run.. but not any of them scanning at the same time. I tried messing around in Task Scheduler, but the only options I get are timed and login/ off options. I want one program to run, and then when that program is done running, another schedule opens and does its thing, when that one is done, it hands it to the next program. anyone know if this is a possible dream?

Link to comment
https://www.neowin.net/forum/topic/510676-sequential-task-scheduling/
Share on other sites

yeah, i was planning on making a batch file to do all of this. i thought that CALL opens another batch file from a batch file.. i didnt know it can open other files. ill give it a try.

another question i would like to ask is how can i have these service programs run automatically. Like I want this all to happen on its own without me touching anything. Is there any option parameters i can add to defrag and antivirus to make them start running on their own?

Edited by Cyranthus

i found ways to run all the programs i want from the command prompt except for windows defender.

heres a copy of what i got so far.

:: SERVICE.BAT
:: Runs all service programs automatically.

@ECHO OFF

:: Checkdisk
CALL CHKDSK /F

:: Kaspersky Anti-Virus
CALL C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 6.0\avp.exe SCAN

:: Diskeeper Defrag
CALL DISKEEPER C

:: Windows Defender
CALL C:\Program Files\Windows Defender\MSASCui.exe

then Ill probably create another batch file to schedule call this batch file or just schedule this as an event to take place when im not around.

:: SERVICE.BAT
:: Runs all service programs.  defrag, Windows Defender, and Antivirus.


@ECHO OFF

:: CHECKDISK (doesnt work)
:: call chkdsk /f

:: KASPERSKEY ANTI-VIRUS
call "C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 6.0\avp.exe" SCAN

:: MICROSOFT DEFENDER
call "C:\Program Files\Windows Defender\mpcmdrun.exe" -SignatureUpdate
call "C:\Program Files\Windows Defender\mpcmdrun.exe" -Scan -2

:: DISKEEPER DEFRAG
call DISKEEPER C

shutdown -s

There we go, it works now.. the only problem i run into is that Scandisk doesnt want to run until you restart the computer... the prompt asks me if I would like to run Scandisk the next time Windows starts (Y or N)? If I could get the batch to automatically respond to this question, i would use that... but for now it still runs Antivirus, Defender and Defrag followed by a shutdown afterwards... this is something I could run before i go to bed or leave somewhere and then it will do its work and then shutdown after its done.

I was thinking do you think I should move the antivirus to last? in case it picks up a virus while im away, does that automatically delete it or does it ask me for a prompt?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.