-
Dillon Silzer 57,491 Reputation points
2022-10-20T02:45:04.023+00:00 Try the following:
echo MODE=^0>>TEST.TXT
The ^ is an escape character.
-------------------------
If this is helpful please accept answer.
Create Text Document with CMD
Hello, I have a batch file with several functions, one generates a TXT file with text inside. The problem is that one of the lines contains the word "MODE" and when executing the function, instead of writing the word, it executes the command.
I leave the code of the function with problems.
echo LANGUAGE=es>TEST.TXT
echo AUTOUPDATE=False>>TEST.TXT
echo TRACK_ID=>>TEST.TXT
echo FOLDER=%~dp0>>TEST.TXT
echo MainSplitterPos=620>>TEST.TXT
echo FORMAT=False>>TEST.TXT
echo MODE=0>>TEST.TXT <-line in conflict
echo BATCH_ART_SHARE_IGNORED_GAMES=>>TEST.TXT
thanks...