2009-09-24

如何在Windows 2000 使用 Windows XP 的 schtasks.exe?

XP 的 schtasks.exe 命令行工具是管理排定工作的很好的工具,Win2K 沒有提供類似功能的命令行工具。如果你在 Win2K的作業系統執行 schtasks.exe 會收到執行的作業系統版本不正確的錯誤訊息,但是可以透過下列方式修改 schtasks.exe 讓它能在 Win2K 的作業系統執行。

 1. 在 hex 編輯器(例如:Hex Workshop)開啟 schtask.exe
 2. 尋找到 CB2A 的位址,將 Hex 值從 75 改成 EB
   如果是使用 XP SP1 則位址在 CC50
   如果是使用 XP SP2 則位址在 E3F8
   如果是使用 XP SP3 則位址在 E391
 3. 儲存,離開編輯器

如果想要美化顯示結果,可以使用 Visual C++ 或其它資源檔編輯器例如 Angus Johnson 的 Resource Hacker 編輯錯誤訊息

ERROR: The Target system must be running Windows XP or above.

to

ERROR: The Target system must be running Windows 2000 or above.

這個錯誤訊息在字串表編號 344.


資料來源:
http://windowsitpro.com/article/articleid/25186/how-can-i-use-windows-xps-schtasksexe-tool-under-windows-2000.html


English:

The XP schtasks.exe command-line tool is great for managing scheduled tasks. Win2K doesn't have an equivalent command-line tool. If you attempt to run schtasks.exe on a Win2K machine, you'll receive an error message indicating that you're using the incorrect OS version. You can modify schtasks.exe to work under Win2K by performing the following steps.

  1. Open schtasks.exe in a hexadecimal editor such as BreakPoint Software's Hex Workshop 3.1.
  2. Find code location CB2A, and change the hex value 75 to EB. If you're using Windows XP Service Pack 1 (SP1), the code location is 0x0000CC50 (not CB2A); if you're using XP SP2, the location is 0x0000E3F8. Updated 12-5-08: If you're using XP SP3, the location is 0x0000E391.

For cosmetic purposes, you can use Visual C++ or a resource editor such as Angus Johnson's Resource Hacker to change the error message

ERROR: The Target system must be running Windows XP or above.

to

ERROR: The Target system must be running Windows 2000 or above.

This error message is located in String Table 344.

2009-02-20

Ubuntu Console 顯示中文

套件:zhcon

安裝:sudo apt-get install zhcon

支援的編碼:big5, gb2312, gbk, jis, ksc

adsense