Win7/Vista/XP scheduled task command: schtasks

  

Windows comes with very many commands, including the scheduled tasks we have not talked about at Win7 House and Vista House before, by the way, sort it out today, send it to everyone .

Of course, novice friends can circumvent this article, and veteran friends can customize their own planning tasks based on this. However, this command is generally used by some software to perform initial installation or uninstallation. For example, some software will prompt you to restart after uninstalling, and it may involve using this command to shut down or Perform a one-time scheduled task the next time you turn it on.

schtasks Command Brief:

Arrange commands and programs to run on a regular basis or at a specified time. Add and remove tasks from the schedule, start and stop tasks as needed, and display and change scheduled tasks.

Before explaining the parameters of the schtasks task task command, briefly make the following points:

1, SchTasks.exe performs operations similar to “Control Panel”“ The operation in the scheduled task & rdquo;. You can use either of these two tools to create, delete, configure, or display scheduled tasks.


2. Type schtasks without any arguments to execute the query.

3. The user must be a member of the Administrators group (administrator) on the computer where the command works. (Software Note: You can run the command line as an administrator under Vista or Win7)

4. To confirm the planned operation or to find out why the plan does not run, please see the “Task Schedule” service transaction. Log Systemroot
\\SchedLgU.txt. This log records the attempted run initiated by all tools that use the service, including "scheduled tasks" and "SchTasks.exe".

5. The situation of corrupted task files rarely occurs. A corrupted file will not run. When attempting to perform an operation on a corrupted task, SchTasks.exe displays the following error message:

 Error: The data is illegal. 

A corrupted task could not be recovered. To restore the system's scheduled task characteristics, use SchTasks.exe or “schedule tasks> remove tasks from the system and reschedule.

6, SchTasks.exe replaces the tool At.exe included in earlier versions of Windows. It can be used in systems such as XP, Vista, Windows 7, and Windows 2003/2008.

Copyright © Windows knowledge All Rights Reserved