Windows Admin Scripting Little Black Book (Little Black Books (Paraglyph Press))

The AT command allows you to schedule tasks from the command line. The basic syntax of the AT command is as follows :

AT \ remote ID / PARAMETERS " fullpath "

Here, remote is an optional name of a remote system on which to control tasks; ID specifies a task ID to modify; and fullpath is the complete path and file name of the item to schedule. Table 2 lists the available parameters.

Table 2: The AT command parameters.

Parameter

Description

/DELETE

Removes a scheduled job.

/EVERY: x

Recurrently runs the command on the specified day ( x ).

/INTERACTIVE

Sets the job to interact with the desktop. This switch must be set if you want the user to have any interactivity with the scheduled task.

/ NEXT : x

Runs the command on the next specified date ( x ).

/YES

Combined with /DELETE , suppresses all jobs cancellation prompt.

Категории