I'm writing a windows CMD Batch file, that (for simplified purposes) is supposed to echo every line of this file:
Flash
your
lights
on
and
off
The problem is when it gets to the 4th and 6th words, it ends up running echo on and echo off, which does not actually echo the text, instead it just sets the state of echo to be ON and OFF.
for /F %%a in (DataFile.txt) do echo %%a
The resulting Output is:
Flash
your
lights
and
Is there a way to literally echo the text on and off?