Files
tldr/pages.zh_TW/windows/cmd.md
2023-12-31 14:00:00 +08:00

33 lines
559 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cmd
> Windows 命令解釋器。
> 更多資訊:<https://learn.microsoft.com/windows-server/administration/windows-commands/cmd>.
- 開啟一個新的命令列執行個體:
`cmd`
- 執行指定的命令然後退出:
`cmd /c {{命令}}`
- 執行一個指定的命令,之後進入一個互動式 shell
`cmd /k {{命令}}`
- 不顯示命令的輸出結果:
`cmd /q`
- 啟用或禁用環境變數擴展:
`cmd /v:{{on|off}}`
- 啟用或禁用命令擴展:
`cmd /e:{{on|off}}`
- 使用 Unicode 編碼強制輸出內容:
`cmd /u`