Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-03-2007, 10:20 PM
kfman
Newsgroup Contributor
 
Posts: n/a
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. )


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 08-03-2007, 10:20 PM
  #2 (permalink)  
Old 08-04-2007, 12:11 AM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?


"kfman" <kfman2008******.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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 08-04-2007, 09:30 AM
HeyBub
Newsgroup Contributor
 
Posts: n/a
Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?

Pegasus (MVP) wrote:
> "kfman" <kfman2008******.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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 08-04-2007, 04:00 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?


"HeyBub" <heybub******.com> wrote in message
news:uK5KaPr1HHA.1188@TK2MSFTNGP04.phx.gbl...
> Pegasus (MVP) wrote:
>> "kfman" <kfman2008******.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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
search and replace Debra Internet Explorer 0 05-21-2007 05:30 AM
Yahoo search tool Chester GS Windows Vista 2 03-09-2007 03:00 AM
Windows Media Player 11 album art and subdirectories Extracampine Windows Vista 1 02-15-2007 07:46 AM
Search and replace to change a file name in a folder Sandy Microsoft Office 0 01-15-2007 11:34 AM
Massive Search and replace. Matt Carter Windows XP 6 01-04-2007 03:40 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 06:03 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0