web analytics
Skip to main content
compuer-key-pipe-backslash-symbol

How to escape the pipe symbol in a batch?

This is an easy one: to escape a pipe symbol in a Windows batch (for example, to echo the pipe symbol in a message), you just have to put a caret before the pipe. Like this:

echo This is a pipe: ^|

Gotcha?