I've got some strings containing < and > located in strings and would like to echo-redirect them into a file (encoded as latin, not utf16 as filewrite seems to insist to do):
setdos /x-6
set sting=test1<test2>test3
setdos /x+6
echo %string > file.txt
This doesn't work, the < and > inside the variable get interpreted as redirection. Is there any way to do this? Thanks!
setdos /x-6
set sting=test1<test2>test3
setdos /x+6
echo %string > file.txt
This doesn't work, the < and > inside the variable get interpreted as redirection. Is there any way to do this? Thanks!