Loop and Replace Space in Filename With Underscore

Loop though filenames in a folder and replace any spaces within a filename with an underscore "_"

This task will loop though filenames in a folder and replace any spaces within a filename with an underscore "_". The results will be displayed in a message box. 

This demonstrates another method of renaming a list of filenames. Information regarding each action are included in the task's steps. 

Note: In order for the task to work properly, please create a folder named temp on your C:\ drive and copy some files to it or specify a different folder to loop through in the "Loop Files" step.

Task Category:

Looping