轉載自——作者:ARM-WinCE
在WinCE中提供了CecImport.exe命令列工具,可以將WinCE6.0以前所使用的.cec檔案轉換成WinCE6.0中使用的.pbcxml檔案。該工具可以在"/Windows CE Platform Builder/6.00/CEPB/IdeVS"目錄下面找到.
具體命令格式如下:
CecImport /target:pbcxml /winceroot:<winceroot> /output:<outputfilename> /version:<winceversion> <inputfile.cec>
/target: 該參數必須存在,表示輸出的檔案類型,一般為pbcxml
/winceroot: 該參數必須存在,WinCE6.0的根路徑
/output: 該參數必須存在,輸出檔案的檔案名稱
/version: WinCE的版本
<inputfile.cec>: 該參數必須存在,要被轉換的cec檔案
下面舉個例子,如下:
CecImport /target:pbcxml /winceroot:d:/WINCE600 /output:d:/smdk2410.pbcxml d:/smdk2410.cec
上面的命令表示將d:/根目錄下的smdk2410.cec檔案轉換成smdk2410.pbcxml檔案,轉換成功以後,命令列視窗中會有如下顯示:
Microsoft (R) Windows CE Platform Builder CecImport utility
Copyright (C) Microsoft Corporation. All rights reserved.
target=PbcXml
locale=804
winceroot=d:/wince600
overwrite=False
filename=d:/smdk2410.cec
output=d:/smdk2410.pbcxml
verbose=False
Import succeeded with 0 warning(s).
上面介紹了命令列工具CecImport.exe的使用方法,其實要轉換cec檔案還有更簡單的方法,開啟Visual Studio 2005,然後選擇"File"->"Open"->"File",直接開啟一個cec檔案,然後直接儲存為pbcxml檔案就可以了.