I\'m trying to rename all the files inside a folder (all .exe files). I want to replace all the spaces with underscores, e.g. qwe qwe qwe asd.exe to qwe_q
qwe qwe qwe asd.exe
qwe_q
Simple as:
set filename=qwe qwe qwe asd.exe set filename=%filename: =_%