I have a simple batch file (forbat.bat), with the following content:
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09") DO @echo Date paid %%G
When I run this batch file, I can get the result.
Now, I want to break the lines into a few lines, to make them easier to read. This is what I did:
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09")
DO
@echo Date paid %%G
This time, I got a "The syntax of the command is incorrect" error.
It seems that I must have missed some semicolons and slashes when introducing the line breaks. How to make the above code work in windows batch file?