Remove spaces in file names variable

December 23, 2014 at 03:27:38
Specs: Windows 7
:: Removing blank characters in batch
:: Remove spaces in filename variable
:: http://stackoverflow.com/questions/...
SET MyVar="1 2 3 4"
set "MyVar=%MyVar: =_%"
echo %MyVar%

SET MyVar="1 2 3 4"
set "MyVar=%MyVar: =%"
echo %MyVar%


Tried to update an old post with this answer but wasn't allowed and forced to create new one !?

message edited by CitizenPips


See More: Remove spaces in file names variable

Report •

#1
December 23, 2014 at 06:50:54
I may be having a brain outtage; what's the issue?

=====================
M2 Golden-Triangle


Report •

#2
December 23, 2014 at 16:47:39
Is this post for information perhaps?

Always pop back and let us know the outcome - thanks


Report •
Related Solutions


Ask Question