for /F "delims=text" comment
Posted: 12 Jul 2013 13:40
Well, well well.
Hands up who knew that the delimiters in a for /F were case sensitive? I didn't.
It returns:
"ABC"
It has been 10 or more years that I've been using delims and never have I struck an instance where the case was an issue - luck I guess.
Hands up who knew that the delimiters in a for /F were case sensitive? I didn't.
Code: Select all
@echo off
for /f "delims=abc" %%a in ("ABCabc") do set "var=%%a"
echo "%var%"
pause
It returns:
"ABC"
It has been 10 or more years that I've been using delims and never have I struck an instance where the case was an issue - luck I guess.