Schedule Jobs and Tasks With Windows At Command

Linux have the same command for same reasons to schedule commands and jobs for specified times and periods. Windows have the same command with similar usage too. Alternative to this command is schtasks command which will schedule future jobs too. We will look some usage examples of at command.

Help

Help about at command can be listed with /? option.

1

$at/?

Help

Schedule Job

Jobs can be scheduled easily. We will specify the time and command with its parameters. In this example 11:00:00PM is given as time and echo "hi" is given as command and parameter.

1

$at11:00:00PMecho"hi"

Schedule Job

Schedule Recurrent Job

We can create a a job which will run every given time or date period. In this example we create a job which will run defrag c: command every Sunday .

1

$at10:00/every:sunday defragc:

Schedule Recurrent Job

List Scheduled Jobs

There will be a lot of all ready scheduled jobs. We can list those jobs. We may list these jobs to learn their id and delete them. We will use at command without any option to list existing jobs.

1

$at

List Scheduled Jobs

Delete Scheduled Jobs

All ready created jobs can be deleted with /delete option and the id of the job. In this example we will delete job id 2 .