Description: |
call:trimSpaces2 retval string |
Script: |
1. 2. 3. 4. 5. 6. 7.
|
:trimSpaces2 retval string -- trims spaces around string and assigns result to variable
:: -- retvar [out] variable name to store the result in
:: -- string [in] string to trim, must not be in quotes
:$created 20060101 :$changed 20080219 :$categories StringManipulation
:$source https://www.dostips.com
for /f "tokens=1*" %%A in ("%*") do set "%%A=%%B"
EXIT /b
|
|