how do i get rid of mid spaces in an environment variable suppose i have the following for loop fragment that get free disk space size of a certain disk
for /f "tokens=3" %%i in ('dir ^| find "Dir(s)"') do set size=%%i
would result something like this
C:\>set size=129,028,096
i wanted to get rid of delims as follows
for /f "delims=," %%i in ('echo %size%') do set size=%%i
and resulted something like this
set size=129 028 096
how can i get it with no mid spaces or delims with native tools thanks in advance