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, Windows, open source by
@ 2007-04-30, Comments at Reddit & Hackernews