Share via


ntcmdprompt

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

在執行 Terminate and Stay Resident (TSR) 後或從 MS DOS 應用程式內啟動命令提示字元之後執行命令解譯器 **Cmd.exe**,而不是 **Command.com**

語法

ntcmdprompt

參數

參數 描述
/? 在命令提示字元顯示說明。

備註

  • 執行 Command.com 時,Cmd.exe 的某些功能 (例如:命令歷程記錄的 doskey 顯示) 無法使用。 如果您想要在啟動 Terminate and Stay Resident (TSR) 或從 MS-DOS 型應用程式啟動命令提示字元後執行 Cmd.exe 命令解釋器,您可以使用 ntcmdprompt 命令。 但是,請記住,當您執行 Cmd.exe 時,TSR 可能無法使用。 您可以將 ntcmdprompt 命令加入 Config.nt 檔案中,或在應用程式的程式資訊檔案 (Pif) 中加入等效的自訂啟動檔案。