在維護電腦運作環境的作業中,有時會將A電腦的設定,移移到B電腦中,再作部份的修改,以節省維護作業時間。
但有時卻發生註冊資料導入的錯誤:
The specified file is not a registry script.
You can only import binary registry files from within the registry editor.
這問題實際上,是因為註冊資料檔案存檔格式不對,造成作業系統誤判,產生錯誤訊息。
正確地存檔格式是:Unicode,而不是 UTF-8
以下是執行註冊檔的過程圖示:
Are you sure you want to add he information in C:\Documents and Settings\perton\DestTop\1.reg to the registry? (英文提示字串)
格式不正確的錯誤
Cannot import C:\Documents and Settings\perton\DestTop\1.reg: The specified file is not a registry script.
You can only import binary registry files from within the registry editor. (英文提示字串)
格式正確的結果
Information in C:\Documents and Settings\perton\DestTop\1.reg has been successfully entered into the registry.(英文提示字串)
沒有留言:
張貼留言