HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-04-2007, 06:14 AM
kfman
 
Posts: n/a
Default Is there a tool that can search and replace multiple files under all subdirectories recursively?

Is there a tool that can search and replace multiple files under all
subdirectories recursively?

Hi all,

In my project, I often need to change the variable names in my programs, and
then remember to undo the changes.

Let's say, in a forward direction, I need to:

change "aaa" to "bbb",
change "ccc" to "ddd",
change "eee" to "fff",
....

in all files under specified directory and its sub-directories, recursively.

And in another day,

I will have to undo the above changes, i.e.

change "bbb" to "aaa",
change "ddd" to "ccc",
change "fff" to "eee",

....

in all files under specified directory and its sub-directories, recursively.

Is there a tool/software that can do these automatically for me?

I hope the tool can automate the process based on a symbol-replacement list
that I provide.

Thanks a lot!

(I am working on Windows XP. )


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 08-04-2007, 08:05 AM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?


"kfman" <kfman2008@gmail.com> wrote in message
news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
> Is there a tool that can search and replace multiple files under all
> subdirectories recursively?
>
> Hi all,
>
> In my project, I often need to change the variable names in my programs,
> and then remember to undo the changes.
>
> Let's say, in a forward direction, I need to:
>
> change "aaa" to "bbb",
> change "ccc" to "ddd",
> change "eee" to "fff",
> ...
>
> in all files under specified directory and its sub-directories,
> recursively.
>
> And in another day,
>
> I will have to undo the above changes, i.e.
>
> change "bbb" to "aaa",
> change "ddd" to "ccc",
> change "fff" to "eee",
>
> ...
>
> in all files under specified directory and its sub-directories,
> recursively.
>
> Is there a tool/software that can do these automatically for me?
>
> I hope the tool can automate the process based on a symbol-replacement
> list that I provide.
>
> Thanks a lot!
>
> (I am working on Windows XP. )
>


Create two batch files like so:

forward.bat
========
ren bbb aaa
ren sub1\bbb aaa
ren sub2\bbb aaa

backward.bat
==========
ren aaa bbb
ren sub1\aaa bbb
ren sub2\aaa bbb

Note that the whole scheme will fail if you create new
files called "bbb" in between running forward.bat and
backward.bat.


Reply With Quote
  #3  
Old 08-04-2007, 05:24 PM
HeyBub
 
Posts: n/a
Default Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?

Pegasus (MVP) wrote:
> "kfman" <kfman2008@gmail.com> wrote in message
> news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
>> Is there a tool that can search and replace multiple files under all
>> subdirectories recursively?
>>
>> Hi all,
>>
>> In my project, I often need to change the variable names in my
>> programs, and then remember to undo the changes.
>>
>> Let's say, in a forward direction, I need to:
>>
>> change "aaa" to "bbb",
>> change "ccc" to "ddd",
>> change "eee" to "fff",
>> ...
>>
>> in all files under specified directory and its sub-directories,
>> recursively.
>>
>> And in another day,
>>
>> I will have to undo the above changes, i.e.
>>
>> change "bbb" to "aaa",
>> change "ddd" to "ccc",
>> change "fff" to "eee",
>>
>> ...
>>
>> in all files under specified directory and its sub-directories,
>> recursively.
>>
>> Is there a tool/software that can do these automatically for me?
>>
>> I hope the tool can automate the process based on a
>> symbol-replacement list that I provide.
>>
>> Thanks a lot!
>>
>> (I am working on Windows XP. )
>>

>
> Create two batch files like so:
>
> forward.bat
> ========
> ren bbb aaa
> ren sub1\bbb aaa
> ren sub2\bbb aaa
>
> backward.bat
> ==========
> ren aaa bbb
> ren sub1\aaa bbb
> ren sub2\aaa bbb
>
> Note that the whole scheme will fail if you create new
> files called "bbb" in between running forward.bat and
> backward.bat.


Not the file NAMES, text WITHIN multiple files across multiple folders.

Google search on "search replace text multiple files free" yielded thousands
of hits. Here's one with six solutions:

http://www.freedownloadscenter.com/U...ls/index6.html


Reply With Quote
  #4  
Old 08-04-2007, 11:52 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?


"HeyBub" <heybub@gmail.com> wrote in message
news:uK5KaPr1HHA.1188@TK2MSFTNGP04.phx.gbl...
> Pegasus (MVP) wrote:
>> "kfman" <kfman2008@gmail.com> wrote in message
>> news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
>>> Is there a tool that can search and replace multiple files under all
>>> subdirectories recursively?
>>>
>>> Hi all,
>>>
>>> In my project, I often need to change the variable names in my
>>> programs, and then remember to undo the changes.
>>>
>>> Let's say, in a forward direction, I need to:
>>>
>>> change "aaa" to "bbb",
>>> change "ccc" to "ddd",
>>> change "eee" to "fff",
>>> ...
>>>
>>> in all files under specified directory and its sub-directories,
>>> recursively.
>>>
>>> And in another day,
>>>
>>> I will have to undo the above changes, i.e.
>>>
>>> change "bbb" to "aaa",
>>> change "ddd" to "ccc",
>>> change "fff" to "eee",
>>>
>>> ...
>>>
>>> in all files under specified directory and its sub-directories,
>>> recursively.
>>>
>>> Is there a tool/software that can do these automatically for me?
>>>
>>> I hope the tool can automate the process based on a
>>> symbol-replacement list that I provide.
>>>
>>> Thanks a lot!
>>>
>>> (I am working on Windows XP. )
>>>

>>
>> Create two batch files like so:
>>
>> forward.bat
>> ========
>> ren bbb aaa
>> ren sub1\bbb aaa
>> ren sub2\bbb aaa
>>
>> backward.bat
>> ==========
>> ren aaa bbb
>> ren sub1\aaa bbb
>> ren sub2\aaa bbb
>>
>> Note that the whole scheme will fail if you create new
>> files called "bbb" in between running forward.bat and
>> backward.bat.

>
> Not the file NAMES, text WITHIN multiple files across multiple folders.
>
> Google search on "search replace text multiple files free" yielded
> thousands of hits. Here's one with six solutions:
>
> http://www.freedownloadscenter.com/U...ls/index6.html


Glad to hear that you found something that works for you.


Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a tool that can search and replace multiple files under all subdirectories recursively? kfman Windows XP Installation 3 08-04-2007 11:52 PM
Search for Multiple Extensions Dewg Windows Vista 3 06-15-2007 12:01 AM
how to convert multiple avi files to multiple dvd discs with winavi Alex DVD Software 2 05-28-2007 09:40 PM
Does the system PATH environmental variable include subdirectories Pheathers Windows XP Installation 3 05-10-2007 12:40 AM
Word Document Indexer and search tool Jez Microsoft Office 4 04-27-2007 02:16 PM


All times are GMT. The time now is 04:08 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger