Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
:trim rem --- Set variable and remove any surrounding quotes set _string=%~1 rem --- Remove whitespace at left for /F "tokens=*" %%s in ("%_string%") do set _trimmed=%%s rem --- Remove whitespace at right echo [%_trimmed%] goto :eof
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.