在一台新裝的伺服器遇到了以下的問題:

不管用"開始->執行->cmd"或直接點程式集中的Command Prompt捷徑,都會傳回以下的錯誤:

cmd.exe - Application Error
----------------------------------
The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

幸好這個訊息很明確,我很快就Google到了答案: 與non-Unicode program的語系設定有關。

這台機器是一台新裝Windows 2003 R2英文版,同事在安裝時忘了將控制台的Regional and Language Options / Advanced / Language for non-Unicode programs 設定 Chinese(Taiwan),而保持在English(United States)。前些時間我調了,系統提示要重新開機,卻因仍有其他程式在跑而暫時擱著,結果就這麼放著。

懷疑cmd.exe的錯誤與前述的語系設定有關,於是重新將語系設定好並重新開機,問題解決!


Comments

Be the first to post a comment

Post a comment