1. 程式人生 > 實用技巧 >使用計劃任務自動執行Windows功能

使用計劃任務自動執行Windows功能

The Scheduled Tasks feature of XP and Vista often seems to be overlooked. This is a great tool to use for Automating Maintenance tasks for the OS. There are a lot of things you can do with this handy utility. In the following shots I demonstrate scheduling aDiskCleanup in Windows XP. Later this week I will feature the extra settings and features included in Task Scheduler in Vista.

XP和Vista的“計劃任務”功能通常似乎被忽略了。 這是用於作業系統自動化維護任務的出色工具。 使用此實用程式,您可以做很多事情。 在以下快照中,我演示了在Windows XP中計劃磁碟清理的過程。 本週晚些時候,我將介紹Vista任務計劃程式中包含的其他設定和功能。

Click on Start Programs Accessories System Tools Scheduled Tasks

單擊開始程式附件系統工具預定任務

1

The Scheduled Tasks Window opens. Just Double Click “Add Scheduled Task”/

“計劃任務”視窗將開啟。 只需雙擊“新增計劃任務” /

2

The wizard opens telling you what it does. Click Next.

嚮導將開啟,告訴您它的作用。 點選下一步。

3

Since the task we are scheduling is a Windows feature just scroll down until you find the built in utility. Click Next.

由於我們計劃的任務是Windows功能,因此只需向下滾動,直到找到內建實用程式。 點選下一步。

4

Now we can type in a name for our task and schedule how often we would like it execute. For Disk Cleanup I chose Monthly.

現在,我們可以為任務輸入一個名稱,並安排執行任務的頻率。 對於磁碟清理,我選擇了每月。

5

Now we choose the specific time to start the task. Since I don’t want Disk Cleanup to run while I am on the computer I choose a time I know I won’t be on it. Yes, 2AM … not all geeks drink Red Bull!

現在,我們選擇開始任務的具體時間。 由於我不希望在計算機上執行磁碟清理程式,因此選擇了一個我不知道要使用它的時間。 是的,凌晨2點…並非所有極客都喝Red Bull!

6

If needed you need to enter in your administrator user name and password.

如果需要,您需要輸入管理員使用者名稱和密碼。

7

You’re done! Click Finish.

你完成了! 單擊完成。

8

This is a very simple example of how Scheduled Tasks can be utilized. If done right, you can really have a lot of automated processes occur while away from your PC. In an IT environment at work I useScheduled Tasks to runmacros and other scripts on our network. As I mentioned I will go more in depth with using this feature including Vista. You can even create your own batch files to run on a scheduled basis. This is a great way to takea lot of controlover what Windows does to benefit your efficient system!

這是如何利用計劃任務的非常簡單的示例。 如果操作正確,則離開PC時,您確實會發生很多自動化過程。 在工作的IT環境中,我使用計劃任務在網路上執行巨集和其他指令碼。 正如我提到的,我將更深入地使用包括Vista在內的此功能。 您甚至可以建立自己的批處理檔案以按計劃執行。 這是對Windows所做的事情進行大量控制的好方法,以使您的高效系統受益!

翻譯自: https://www.howtogeek.com/79819/automate-windows-functions-with-scheduled-tasks/