I do batch convert images to png. But some source images have space in name (for example "1233 .bmp"). Is it possible delete/remove space from name when NConvert convert it (to "1233.bmp")?
Now my command look like this
Code: Select all
nconvert.exe -D -out png *.*
Code: Select all
FOR /R d:\Project-Result\Img %%f IN (*) DO CALL:REN "%%f"
goto:eof
:: :REN - subfunction
:: %~nxI - expands %I to a file name and extension only
:REN
set "file=%~nx1"
ren %1 %file: =%