Computing.Net > Forums > Programming > Batch Search/Replace filenames

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Search/Replace filenames

Reply to Message Icon

Name: RAJ
Date: February 2, 2005 at 08:46:36 Pacific
OS: Windows XP
CPU/Ram: Celeron/512M
Comment:

I'm a batch program novice and am looking for some help with writing a batch script that recursively looks at all files in a given folder (and any subfolders) and searches for a string called 'projname' in the filename and replaces that pattern with another string, let's say 'myproj'.
So for example, the following files, 'projname_data.txt' and 'design_projname.doc' would be renamed to 'myproj_data.txt' and 'design_myproj.doc' repsectively.

I've tried emulating some of the other rename scripts that I found in the forum, without much luck.

Thanks.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


assert statement - genera... 3d rendering for win 3.1



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch Search/Replace filenames

Batch: Search Replace in Variables www.computing.net/answers/programming/batch-search-replace-in-variables/14057.html

batch script to replace filenames h www.computing.net/answers/programming/batch-script-to-replace-filenames-h/16301.html

vbs search & replace w/a twist www.computing.net/answers/programming/vbs-search-amp-replace-wa-twist/15698.html