Under windows at command use detailed

Source: Internet
Author: User
Tags net time time and date net send

The T command is a built-in command in Windows XP, and it can be comparable to "Scheduled Tasks" in Windows, and the AT command has more powerful and magical features in terms of scheduling, task management, and handling of work transactions. The AT command can run commands and programs on a specified computer at a specified time and date. We can enter the AT command in Start → Run and see some example analysis of the AT command below.

1. Timed shutdown
Command: at 21:00 Shutdown–s–t30
After the command runs, the computer will have the "System Shutdown" dialog box and the default 30-second delay automatically shuts down at 21:00.

2. Timed Reminders
Command: At 10.10.36.132 Net Send the time to date with a friend is up, hurry up and get ready to go!
Where net send is a Windows internal program that can send messages to other users, computers on the network. 10.10.36.132 is the IP address of the native computer. This feature is also known as the "Messenger Service" in Windows.

3. Automatically run batch files
If the company's data like Blake important and requires a backup at a specified date/time, then run:
Command: at 1:00am/every:saturday My_backup.bat
Thus, in each Saturday (Saturday) Morning 1:00, the computer timed to start the My_backup.bat batch file. My_backup.bat is a batch file that you have compiled yourself, which contains multiple commands that can perform a full backup of your system's data.

4. Cancellation of scheduled plans
Command: At 5/delete
Sometimes the plan you have scheduled may change temporarily so that you can delete the plan in time with the above command (5 is the identification number assigned to the scheduled command), and of course, after you delete the plan, you can reschedule it.
The AT command is a command in the win2000/xp/nt, but in our invasion is an indispensable service, he can let the program has a program in a certain amount of time to automatically execute, so as to control the computer, the following say his usage!
The AT command schedules commands and programs to run on a specific date and time. To use the AT command, the scheduling service must already be running.

at [\\computername] [[ID] [/delete] |/delete [/YES]]
at [\\computername] time [/interactive]
[/every:date[,...] |/next:date[,...]] "Command"
\\COMPUTERNAME Specifies the remote computer. If this argument is omitted, the command is scheduled to run on the local computer.
ID is assigned to the identification number of the scheduled command.
/delete deletes a scheduled command. If the ID is omitted, all scheduled commands on the computer are deleted.
/yes does not require further confirmation, it is used with commands that delete all jobs.
TIME specifies when the command is run.
/interactive allows the job to interact with the user's desktop when it is logged on at run time.
/every:date[,...] Runs the command every month or week on a specified date. If the date is omitted, the default is to run on the current day of the month.
/next:date[,...] Specifies that the command be run on the next specified date (for example, next Thursday). If the date is omitted, the default is to run on the current day of the month.
"Command" Prepares the Windows NT command or batch program to run.
Let's talk about some of his usage!!
(Viliosn.exe is a program)
1, if you want to start the other side in a specified time of a program, you can enter in the command line:
At \\127.0.0.123:00 C:\winnt\system32/viliosn.exe
Tip: Add a new job, homework id=1
2. Let the other computer start a program at 23:00 per Monday and Tuesday. So you can break in.
At \\127.0.0.1 23:00/every: one, two C:\winnt\system32\viliosn.exe
Tip: Add a new job, homework id=2
3. Delete the task with Job ID 1 on the opposing computer
At \\127.0.0.1 1/delete/yes
4. Delete All Tasks
At \\127.0.0.1/delete
Tip: Do you want to delete all the actions? And then we hit Y.
Current time of 192.168.0.1 Machine Detected:
NET time \\192.168.0.1
Set the 192.168.0.1 machine to run the Huigezi.exe program at 10:05:
At \\192.168.0.1 10:05 Huigezi.exe
At lists scheduled commands or scheduled commands and programs that run on the computer at a specified time and date. You must be running the Schedule service to use the AT command.
at [\\computername] [[ID] [/delete] |/delete [/YES]]
at [\\computername] time [/interactive] [/every:date[,...]|/next:date[,...]] command
Parameter None
If used without parameters, at lists the scheduled commands.
\\computername
Specifies the remote computer. If this argument is omitted, the command is scheduled on the local computer.
Id
Specifies the identification code assigned to the scheduled command.
/delete
Cancels the scheduled command. If the ID is omitted, the scheduled commands in the computer are all canceled.
/yes
When you delete a scheduled event, the query on the system enforces a positive response.
Time
Specifies the time at which the command is run. The time is expressed as hour: minutes with a 24-hour mark (00:00 [midnight] to 23:59).
/interactive
Allows the job to interact with the desktop of the user who is logged on when the job runs.
/every:date[,...]
Run the command on the specified day of the week or month (for example, every Thursday, or the third day of the month). Specify date as the day or days of the week (M,T,W,TH,F,S,SU), or the day or days of the month (numbers from 1 to 31). Separate multiple date items with commas. If date is omitted, the current date for that month is assumed.
/next:date[,...]
When the next day repeats (for example, next Thursday), run the specified command to specify date as the day or days of the week (M,T,W,TH,F,S,SU), or one or more days of the month (numbers from 1 to 31). Separate multiple date items with commas. If date is omitted, the current date for that month is assumed.
Command
Specifies 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 a parameter, use the absolute path, which is the entire path starting with the drive letter. If the command is on a remote computer, specify the UNC symbol for the server and share name instead of 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

Under windows at command use detailed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.