HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to rename multiple files in Windows

133,395 views November 2, 2018 14:11

Watch on YouTube
ChannelKarina Adcock

Description from the creator

In this video I show you a few different methods for renaming multiple files all in one go in Windows using the Windows PowerShell, Windows command prompt and Windows file explorer.

---------------------------------------------------------------------------------
PowerShell

dir | Rename-Item -NewName {$_.name -replace "Taiwan", "TW"}
dir | Rename-Item -NewName {$_.name -replace " ", "-"}
dir | Rename-Item -NewName {$_.name -replace "TW-", ""}
dir -exclude "Taiwan-*" | Rename-Item -NewName {"Taiwan-" + $_.name}
dir | Rename-Item -NewName {$_.basename + "-example" + $_.extension}

---------------------------------------------------------------------------------
Command Prompt

rename "Taiwan-*" "Taiwan *"
ren "taiwan *" "///////*"
ren "2015*" "2016*"
For %a in (*.*) do ren "%a" "prefix-%a"

About this tutorial

Karina Adcock published this 14:11 video tutorial on November 2, 2018. It has been watched 133,395 times on YouTube.

Category
Education
Duration
14:11
Published
November 2, 2018
Views
133,395
Likes
2,042

Tags

Share

This tutorial in other languages