Insert the string '%' (percent) in the echo output
Posted: 21 Nov 2013 06:07
Hy guys, i'm needing some help.
I'm trying to create an automation here. This automation will create a file that also has DOS commmands. The problem is; when I try to insert some DOS files, the output has no isses, but, when I insert the string %, the DOS ignore as characters and works with it like a DOS command.
Script
echo %Test > Teste.txt
Output
Test
Expected output
%Test
Is it posible to make DOS interpret %Test as string and not as a command?
PS: I already tested the line using ^, but this does not solve the issue, DOS keep ignoring the char even using the ^
Thanks in advance.
I'm trying to create an automation here. This automation will create a file that also has DOS commmands. The problem is; when I try to insert some DOS files, the output has no isses, but, when I insert the string %, the DOS ignore as characters and works with it like a DOS command.
Script
echo %Test > Teste.txt
Output
Test
Expected output
%Test
Is it posible to make DOS interpret %Test as string and not as a command?
PS: I already tested the line using ^, but this does not solve the issue, DOS keep ignoring the char even using the ^
Thanks in advance.