tldr/pages/windows/cmd.md

37 lines
689 B
Markdown
Raw Normal View History

2018-09-26 21:01:42 +01:00
# cmd
> The Windows command interpreter.
2019-08-22 13:37:57 +01:00
> More information: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd>.
2018-09-26 21:01:42 +01:00
- Start a new instance of the command interpreter:
`cmd`
- Run the specified command and then exit:
`cmd /c "{{command}}"`
- Run the specified command and then enter an interactive shell:
`cmd /k "{{command}}"`
- Disable the usage of `echo` in command output:
`cmd /q`
- Enable or disable command extensions:
`cmd /e:{{on|off}}`
- Enable or disable file or directory autocompletion:
`cmd /f:{{on|off}}`
- Enable or disable environment variable expansion:
`cmd /v:{{on|off}}`
- Force output to use unicode encoding:
`cmd /u`