bodacydo
bodacydo

Reputation: 79319

What symbols have to be escaped in cmd.exe command line?

I've trouble with finding a list of all symbols that need to be treated specially in Windows cmd.exe command line.

For example,

C:\Users\boda>echo ">"

Outputs:

">"

But

C:\Users\boda>echo '>'

Doesn't output anything.

Similarly none of these work:

C:\Users\boda>echo \'>\'

C:\Users\boda>echo \'\>\'

C:\Users\boda>echo '\>'

There are similar issues with characters | and ^ and probably more.

Does anyone know how to use raw strings in cmd.exe?

Upvotes: 4

Views: 1970

Answers (0)

Related Questions