Question : Remove underscore from folder names and replace with space

I would like a batch file that will remove an underscore that is part of a file folder name and replace with a space in a certain directory.

example au_106 would become au 106

Answer : Remove underscore from folder names and replace with space

for /f "tokens=1* delims=_" %a in ('dir /ad /b *_*') do @move "%a_%b" "%a %b"

Try to run the above command in the folder containing the folders in question (run it as a command - don't put it in a batch file - in a batch file it will fail unless you double the %s).
Random Solutions  
 
programming4us programming4us