From e33298ff7556343c1e19a7c6413b440c27c938f8 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Tue, 23 Nov 2021 03:37:32 +1000 Subject: [PATCH] cmd: update page (#7417) --- pages/windows/cmd.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pages/windows/cmd.md b/pages/windows/cmd.md index c46ddc9b52..6bfacf7fa4 100644 --- a/pages/windows/cmd.md +++ b/pages/windows/cmd.md @@ -3,34 +3,34 @@ > The Windows command interpreter. > More information: . -- Start a new instance of the command interpreter: +- Start an interactive shell session: `cmd` -- Run the specified command and then exit: +- Execute a [c]ommand: `cmd /c "{{command}}"` -- Run the specified command and then enter an interactive shell: +- Execute a script: + +`cmd {{path/to/file.bat}}` + +- Execute a command and then enter an interactive shell: `cmd /k "{{command}}"` -- Disable the usage of `echo` in command output: +- Start an interactive shell session where `echo` is disabled 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: +- Start an interactive shell session with delayed [v]ariable expansion enabled or disabled: `cmd /v:{{on|off}}` -- Force output to use Unicode encoding: +- Start an interactive shell session with command [e]xtensions enabled or disabled: + +`cmd /e:{{on|off}}` + +- Start an interactive shell session with used Unicode encoding: `cmd /u`