Rename Character in Multiple Windows Files

In PowerShell (Start > search “PowerShell”) go the the relevant directory where the files are located:

cd "C:\***"

*** = your full directory path

Then, use the command below to replace specific character(s) in file names:

Dir | Rename-Item –NewName { $ –replace "_","-" }

This command replaces the underscore (“_”) with a dash (“-“). Modify as needed.

Share On