2021-10-26 08:42:13 +01:00
|
|
|
|
# cmd
|
|
|
|
|
|
|
|
|
|
> Windows 命令解釋器。
|
2022-10-04 16:06:23 +01:00
|
|
|
|
> 更多資訊:<https://learn.microsoft.com/windows-server/administration/windows-commands/cmd>.
|
2021-10-26 08:42:13 +01:00
|
|
|
|
|
|
|
|
|
- 開啟一個新的命令列執行個體:
|
|
|
|
|
|
|
|
|
|
`cmd`
|
|
|
|
|
|
|
|
|
|
- 執行指定的命令然後退出:
|
|
|
|
|
|
|
|
|
|
`cmd /c "{{命令}}"`
|
|
|
|
|
|
2022-03-27 06:25:15 +01:00
|
|
|
|
- 執行一個指定的命令,之後進入一個互動式 shell:
|
2021-10-26 08:42:13 +01:00
|
|
|
|
|
|
|
|
|
`cmd /k "{{命令}}"`
|
|
|
|
|
|
|
|
|
|
- 不顯示命令的輸出結果:
|
|
|
|
|
|
|
|
|
|
`cmd /q`
|
|
|
|
|
|
|
|
|
|
- 啟用或禁用命令擴展:
|
|
|
|
|
|
|
|
|
|
`cmd /e:{{on|off}}`
|
|
|
|
|
|
|
|
|
|
- 啟用或禁用文件和目錄名的自動補全:
|
|
|
|
|
|
|
|
|
|
`cmd /f:{{on|off}}`
|
|
|
|
|
|
|
|
|
|
- 啟用或禁用環境變數擴展:
|
|
|
|
|
|
|
|
|
|
`cmd /v:{{on|off}}`
|
|
|
|
|
|
|
|
|
|
- 使用 Unicode 編碼強制輸出內容:
|
|
|
|
|
|
|
|
|
|
`cmd /u`
|