delete space from result name
Posted: Sun Jun 02, 2013 6:46 pm
Hi
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
after finish converting i use cmd scripts for remove space from names.
But, it is Better if space will remove when NConvert converting images.
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: =%