Differences between revisions 1 and 2
Revision 1 as of 2023-01-30 02:50:43
Size: 375
Comment:
Revision 2 as of 2023-01-30 02:51:13
Size: 579
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
The primary challenge with escaping characters is that every time `cmd.exe` interprets an escaped character, the escape is removed. Commands that will be re-interpretted can require multiple escapes.

Batch Quoting


Escaping Characters

Certain characters cause cmd.exe to interpret commands and arguments differently

These characters can be escaped to prevent their misinterpretation. The escape character is caret (^).

set foo=bar ^| baz

The primary challenge with escaping characters is that every time cmd.exe interprets an escaped character, the escape is removed. Commands that will be re-interpretted can require multiple escapes.


Quoting


CategoryRicottone

Batch/Quoting (last edited 2023-01-30 03:12:02 by DominicRicottone)