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
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.
Summary: Hi IVO, thanks a lot for your answer! It would be a solution, but the problem is, that I dont know if it is: D:\Prog... The line string and the path string are both dynamic. Is the Search Replace of a...
Summary: Hi, I need to replace filenames having spaces and dots with underscre using a .bat script example: need to convert filename like RBS Diff data we 06.07.07.xls to RBS_Diff_data_we_06_07_07.xls Can some...
Summary: Hello All, I would like to tweak the following vb script to search for multiple text strings. And add two lines after each match. Then append multiple lines to the end of the file. am a little confuse...