Page 1 of 1

Need help with find and replace batch

Posted: 26 Jun 2008 08:30
by lkarelee
I have seen a number of DOS batch scripts for find and replace - but none of them seem to work very well - and none will use a wildcard and recursive directories.

I need to replace our smtp server name in a bunch of batch files in subdirectories from 'ctmwebappp' to a fully qualified name like 'ctmwebappp.city.austin'

does anyone have a batch file that will do this using a wildcard?

Posted: 17 Jul 2008 10:03
by greenfinch
I ended up using gsar for things like this:
http://gnuwin32.sourceforge.net/packages/gsar.htm