Bat file for renaming multiple files using the command prompt

Windows 11

Active Members
Joined
Dec 10, 2024
Messages
16,332
Greetings,I had a messy .mp4 collection that need intensive naming rework. I have tried using u/Derrick19 guide as followingOpen PowerShell Navigate to the directory containing files using the cd command. For example: cd C:\path\to\your\filesRun the following command:Get-ChildItem -Filter *.mp4 | Rename-Item -NewName {$_.name -replace 'oldname','newname' } Here is a breakdown of the command: Get-ChildItem -Filter '*.mp4' - Retrieves all files in the directory with a .mp4 extension.Rename-Item -NewName {$_.name -replace 'oldname','newname'

Continue reading...
 
Back
Top