Loop Through and Rename Files

"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. It also demonstrates the use of Common Dialogs to prompt a user for information (in this case, the Folder Browser dialog is used).

Note: In this example the files are not actually renamed, but rather a message box with the renamed value is displayed. In this way you can safely run the task without modifying your system. To actually rename the file, enable the "rename" step."

click here to download this task