dracoblue.net

Command line escape character for .bat on windows

If you want to escape special characters on .bat-files for windows, you need to put a

^ in front of it.

I noticed this, while trying to write a ">" to a file with one line.

echo test=^<info^> > test.txt

This writes "test=" into the file test.txt.

In , .bat, articles, open source, windows by
@ 30 Apr 2007, Comments at Reddit & Hackernews