2009年12月16日 星期三

如何在Windows Mobile 6上使用cmd.exe

1. 下載"WindowsMobilePowerToys.msi", 可以在 Microsoft Download Center中找到.
http://www.microsoft.com/downloads/details.aspx?familyid=74473FD6-1DCC-47AA-AB28-6A2B006EDFE9&displaylang=en

2. 安裝WindowsMobilePowerToys.msi在PC上.

3. 在PC上的路徑下
C:\Program Files\Windows Mobile Developer Power Toys\PPC_Command_Shell\arm
可以看到3個檔案, 1)cmd.exe, 2)console.dll, 3)shell.exe

4. 將console.dll copy 到Device的\Windows下

5. copy cmd.exe, shell.exe到Device你想要的目錄下
P.S. Shell.exe似乎不一定需要

6. 設Registry:
[HKEY_LOCAL_MACHINE\Drivers\Console]
"OutputTo"=dword:0
P.S. 如果是在PocketPC2003不需要設此Registry

7. 執行cmd.exe即可
P.S. 原先WindowsMobilePowerToys是提供給PocketPC2003,所以畫面很小