Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use at Command under dos

Shulou Source: shulou.com Published: 2022-06-03 19:38:01 10月06日 Update

This article mainly explains "how to use the at command under dos". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use the at command under dos.

At

Lists scheduled commands or scheduled commands and programs that run on the computer at the specified time and date. The schedule service must be running to use the at command.

At [\ computername] [[id] [/ delete] | / delete [/ yes]]

At [\ computername] time [/ interactive] [/ every:date [,...] | / next:date [,...]] Command

Parameters.

None

If used with no parameters, at lists the scheduled commands.

[url= file://\\computername]\\computername[/url]

Specify the remote computer. If you omit this parameter, the command is scheduled on the local computer.

Id

Specifies the identifier assigned to the scheduled command.

/ delete

Cancel the scheduled command. If id is omitted, all scheduled commands on the computer will be canceled.

/ yes

When you delete a scheduled event, force an affirmative answer to the system's query.

Time

Specifies the time to run the command. Time is expressed as hours: minutes in the form of a 24-hour mark (00:00 [midnight] to 23:59).

/ interactive

Allows the job to interact with the desktop of the logged-in user while the job is running.

/ every:date [,...]

Run the command on a specified day of each week or month (for example, every Thursday, or the third day of each month). Specify the date as one or more days of the week (Mrecine T, W, H, or, or the day or days of the month (using numbers 1 to 31). Separate multiple date entries with commas. If date is omitted, it is assumed to be the current date of the month.

/ next:date [,...]

When the next day repeats itself (for example, next Thursday), run the specified command to specify the date as one or more days of the week (MMagre Tschew, Wrech, Thlast, Fregor, Su), or one or more days of the month (using numbers from 1 to 31). Separate multiple date entries with commas. If date is omitted, it is assumed to be the current date of the month.

Command

Specify the Windows 2000 command, program (.exe or .com file) or batch program (.bat or .cmd file) to run. When the command requires a path as an argument, use the absolute path, that is, the entire path starting from the drive letter. If the command is on a remote computer, specify the UNC symbol for the server and share name, not the remote drive letter. If the command is not an executable (.exe) file, you must precede the command with cmd / c, for example:

Cmd / c dir > c:\ test.out

At this point, I believe you have a deeper understanding of "how to use the at command under dos". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Commands runs dates weeks methods parameters multiple days usage files time programs computers paths content multiple hours numbers commas drives jobs Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology Shulou Tech Info vpn OPPO Reno