|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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. ) |
| |||
| 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. |
| |||
| 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 |
| |||
| 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. |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |