PDA

View Full Version : Replace in Files (looping possible?)


SpartanHokie
12-18-2004, 10:43 AM
I have a bunch of files that I want to do a search and replace on, but I don't explicitly know what files they are. They are defined by a specific extension. Is it possible to do a replace in files based on a folder and a given extension? Or at a minimum, could I do a replace in a VBScript method? I could go and get the file names from there and call a replace in file step for each filename I find. Thanks in advance!

kinook
12-18-2004, 11:19 AM
Use the Process Files action, with a Replace in File action as a child of it, using %PROCFILES_FULLPATH% in the Filename field. See the Recurse.bld sample and http://www.visualbuild.com/Manual/?processfilesaction.htm for more details.