Windows power shell has command line utility to rename file names recursively.

Here below I have renamed a file maven-metadata-local.xml to maven-metadata.xml under a folder recursively.

1. Go to Windows Start menu and type ‘Windows powerShell’ and click the powershell .

2. Go to the directory where you rename files and type the command similar to below.

The above command search for file name starts with maven-metadata and replace the entire  file name with maven-metadata.xml recursively

Let’s pick the command apart and explain each piece.

List file names starts with maven-metadata
  

Search recursively

(the pipe character)

Pass the result of first command (get-childitem ) to second command (rename)

Rename the file with maven-metadata.xml

Reference: 

http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/22/use-powershell-to-rename-files-in-bulk.aspx

pgn Mass search and rename file names on Windows 7 using Powershell

Govindan

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
pgn Mass search and rename file names on Windows 7 using Powershell

Latest posts by Govindan

By | 2016-08-27T18:31:26+00:00 October 26th, 2015|Categories: Windows|Tags: , , |0 Comments
Like us on Facebook.
Connect!