In the standard Windows batch file (.cmd) I want:
FOR /F "skip=0" %%G IN (filename.txt) DO ( ECHO %%G )
but i get " was unexpected at this time.
"skip=1"works fine ( 0there is a variable in my actual code ).
According to ss64.com , the default value skip=0, but it does not seem to work with an explicit set.
Am I doing it wrong? Or is there a workaround that I can use?
Edit:
I tried this on both Windows Server 2003 and Windows 7.
The contents of filename.txt may be:
something
stuff
unicorns
source
share