I need to replace filenames having spaces and dots with underscore using a .bat script
I need to convert filenames like Web News 04-08-2008.docx to Web_News_04-08-2008.docx
But i need it also to be able to look and replace in (Sub) Maps
This is the script i used for testing and it works perfect but it does not change any file names in the Sub map what is good is that it didn't change the name of the Sub map
Here is the Script:
for %%j in (*.*) do (
set filename=!filename: =_!
if not "!filename!"=="%%~nj" ren "%%j" "!filename!%%~xj"
Can someone kindly help?