2019-03-10 14:15:19 +00:00
|
|
|
|
# cmd
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> Windows 命令解释器。
|
2021-10-01 19:28:01 +01:00
|
|
|
|
> 更多信息:<https://docs.microsoft.com/windows-server/administration/windows-commands/cmd>.
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 开启一个新的命令行实例:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 运行指定的命令然后退出:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /c "{{命令}}"`
|
|
|
|
|
|
2022-03-27 06:25:15 +01:00
|
|
|
|
- 执行一个指定的命令,之后进入一个交互式 shell:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /k "{{命令}}"`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 不显示命令的输出结果:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /q`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 启用或禁用命令扩展:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /e:{{on|off}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 启用或禁用文件和目录名的自动补全:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /f:{{on|off}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 启用或禁用环境变量扩展:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /v:{{on|off}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 强制输出内容使用 Unicode 编码:
|
2019-03-10 14:15:19 +00:00
|
|
|
|
|
|
|
|
|
`cmd /u`
|