Like an echo >> w980> in a batch

How to insert a symbol> in an echo message?

I want to have this:

echo C:\Users\%uname%>

But that will not work. NP ++ shows me the symbol> in red, so is this something special? The Unicode> character also does not work. It simply displays this: the ø symbol.

+4
source share
1 answer

><|& are special characters in batch files, but you can avoid special characters using ^

echo C:\Users\%uname%^>
+4
source

All Articles