From 20ce3c4696610cd5c996140fedbe7b675b86619a Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Mon, 6 Feb 2023 00:51:25 +1000 Subject: [PATCH] cmd: refresh page (#7988) * Refresh a page: - better grammar - better token syntax * Remove redundant quotes * Apply suggestions from code review Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Make page consistent with `pwsh` page and: - add more mnemonics --------- Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> --- pages/windows/cmd.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/windows/cmd.md b/pages/windows/cmd.md index 07732cc4a..e86fd4ef6 100644 --- a/pages/windows/cmd.md +++ b/pages/windows/cmd.md @@ -7,17 +7,17 @@ `cmd` -- Execute a [c]ommand: +- Execute specific [c]ommands: -`cmd /c "{{command}}"` +`cmd /c {{echo Hello world}}` -- Execute a script: +- Execute a specific script: -`cmd {{path/to/file.bat}}` +`cmd {{path/to/script.bat}}` -- Execute a command and then enter an interactive shell: +- Execute specific commands and then enter an interactive shell: -`cmd /k "{{command}}"` +`cmd /k {{echo Hello world}}` - Start an interactive shell session where `echo` is disabled in command output: @@ -31,6 +31,6 @@ `cmd /e:{{on|off}}` -- Start an interactive shell session with used Unicode encoding: +- Start an interactive shell session with used [u]nicode encoding: `cmd /u`