I have a callscript (.bat file), the purpose of which is to obtain the length of a string.
The script works, except when I pass a token that contains a space, even if between quotes.
I am running under windows xp.
if [%1]== goto returnStrLen
if defined # (set #=%#:~1%&set /A strLength += 1&goto count)