Can you help out with a .bat to delete all the spaces (there’s mutiple not just a space) in file names?
I have a directory with many files and the names are very long and with many spaces in it and I get errors while opening them.
Thanks!
I found this on internet but doesn’t work with multiple spaces, I’m not able to modify it:
@echo off
echo if “%%3″==”” if not “%%2″==”” ren “%%1 %%2” %%1%%2>~nospace.bat
lfnfor on
set “=
for %%f in (.) do call ~nospace.bat %”%%%f%”%
del ~nospace.bat
user3428107 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.