Solved

Find and Replace

Posted on 2014-03-27
5
190 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 16

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Office Web Apps/ SharePoint 2013 1 59
Defining contents of Combo box 4 51
Skype/Lync Emoticons Question 3 75
Need to Edit a PDF 9 82
With the internet and the ease of information transference, many professional jobs can be done anywhere today.  Why should it make a difference whether an x-ray is read in India or the United States as long as the radiologist is qualified?   Outso…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now