FOR LOOP Question - Delimiters
Posted: 09 Jan 2019 19:54
Hi Folks -
I have what I believe is a very easy question.
If I have a file with a line:
Why does "%%~A" return "Total Tire Centers" instead of just ""? Ideally, I want to be able to check if %%A is NULL but as of now, it seems as though %%A would never be NULL, which is not what I want.
Sorry for the - i'm sure - very easy question!
Thanks!
I have what I believe is a very easy question.
If I have a file with a line:
And my FOR LOOP looks like this:,Total Tire Centers
Code: Select all
FOR /F "USEBACKQ TOKENS=1-2 DELIMS=," %%A IN ("%CNTRL_FILE%") DO ECHO "%%~A" "%%~B"
Sorry for the - i'm sure - very easy question!
Thanks!