Can't remove <space> FOR delimiter
Posted: 15 Dec 2011 10:05
I'm unable to ignore spaces in my FOR loop token parsing, Am I doing something wrong??
For /F "tokens=1-5 delims=," %%I IN (%_InputFile%) DO (
ECHO %%I
Call process_machine %%~I %%~J %%~K %%~L %%~M
)
The text file as lines like:
997_m1,/turfcare/997_M1_9M94,997_M1_9M94.xlsm,\\f05tc1\shared\V2Net\115778 - TC997T4 MY13MuleData Collection\,9M94 M1
For /F "tokens=1-5 delims=," %%I IN (%_InputFile%) DO (
ECHO %%I
Call process_machine %%~I %%~J %%~K %%~L %%~M
)
The text file as lines like:
997_m1,/turfcare/997_M1_9M94,997_M1_9M94.xlsm,\\f05tc1\shared\V2Net\115778 - TC997T4 MY13MuleData Collection\,9M94 M1