Solved

Find and Replace

Posted on 2014-03-27
5
197 Views
Last Modified: 2014-05-29
Seeking to quickly locate files on my storage device that have common names like:

example01, example02, example03.....and rename them as:  red01, yellow02, green03

Using Windows 7.  Former versions of had FileManager and other tools that used wildcards to quickly search and replace.  The Search tool in Windows 7 works great, but haven't found a replace feature that works with the search.

Someone find a solution?
0
Comment
Question by:clock1
  • 3
5 Comments
 
LVL 26

Expert Comment

by:pony10us
ID: 39960337
You can open a command line and enter this command:

for /f "delims=*" %a in ('dir example01.* /b /s') do ren "%a" red01.*

repeat for each one:

for /f "delims=*" %a in ('dir example02.* /b /s') do ren "%a" yellow02.*

etc.

or you should be able to create a batch file with all commands:

@echo off
for /f "delims=*" %a in ('dir example01.* /b /s') do ren "%a" red01.*
for /f "delims=*" %a in ('dir example02.* /b /s') do ren "%a" yellow02.*
for /f "delims=*" %a in ('dir example03.* /b /s') do ren "%a" green03.*
0
 

Author Comment

by:clock1
ID: 39960543
Is DOS the only alternative?
0
 
LVL 17

Expert Comment

by:Gerald Connolly
ID: 39961138
Well its probably the easiest, you could do it with Perl, but that is a bit more complicated
0
 

Accepted Solution

by:
clock1 earned 0 total points
ID: 39961436
Or could use FileTree.xla to produce recurrsive directory tree in Excel and use Find/Replace there.
0
 

Author Closing Comment

by:clock1
ID: 40097760
In this case, works best for me.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This collection of functions covers all the normal rounding methods of just about any numeric value.
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question