Escaping > character in the DOS command line

Argo

Lifer
Apr 8, 2000
10,045
0
0
I need to execute a command with one of parameters being '>' character. Is there any way to escape that, otherwise the OS thinks I'm asking it to redirect output.
 

akubi

Diamond Member
Apr 19, 2005
4,392
1
0
putting it in quotes is the closest way to do it. ">"

but that passes in the quotes too... so the program that uses it must be able to parse it correctly.
(i.e. echo ">" will print out the three characters ">")

there's no other way to escape it in dos.