G
Guest
My batch program parses a file using %s:~n,m%.
This creates string with trailing blanks that I need to remove.
Does someone know if there is a function similar to vb's TRIM?
Something that returns "ROME" when the city is "ROME ".
I used FOR /f %%m IN ('echo %CITY%') DO SET CITY=%%m, but it has the
disadvantage to return "LOS" when CITY="LOS ANGELES "
Thank you!
Stefano Gatto
Geneva, Switzerland
This creates string with trailing blanks that I need to remove.
Does someone know if there is a function similar to vb's TRIM?
Something that returns "ROME" when the city is "ROME ".
I used FOR /f %%m IN ('echo %CITY%') DO SET CITY=%%m, but it has the
disadvantage to return "LOS" when CITY="LOS ANGELES "

Thank you!
Stefano Gatto
Geneva, Switzerland