How to send special characters by CMD to a file?

5

I want to send the > character to a file via CMD but I can not.

The following example illustrates my difficulty:

echo casa > cidade > Estado  >Arquivo.txt

In the above example you should write the phrase " home> city " in the file, but I can not type the character > (only write home in File.txt).

Is there any command in CMD to write this type of character to a file?

    
asked by anonymous 24.08.2016 / 02:20

1 answer

2

Use the escape character ^ :

echo casa ^> cidade ^> Estado > Arquivo.txt
    
24.08.2016 / 02:23