Try the following:
echo MODE=^0>>TEST.TXT
The ^ is an escape character.
-------------------------
If this is helpful please accept answer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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...
Try the following:
echo MODE=^0>>TEST.TXT
The ^ is an escape character.
-------------------------
If this is helpful please accept answer.