This is a similar question to the one I ask here. I am running on Windows XP.
I am trying to get for loop to work on Windows. Following the suggestion that I have to make sure that the command are valid cmd command, I constructed a valid for loop batch command:
@echo off
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09") ^
DO ^
echo Date paid %%G ^
And put it in a Makefile. This is the content of the makefile:
all:
@echo off
FOR /F "tokens=4 delims=," %%G IN ("deposit,$4500,123.4,12-AUG-09") ^
DO ^
echo Date paid %%G ^
But still, I got an error:
FOR /F "tokens=4 delims=," %%G IN ("deposit,500,123.4,12-AUG-09") ^ make: * [all] Error 255
Any idea how to fix this?