Batch Quoting
Contents
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.