Need help with find and replace batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
lkarelee
Posts: 2
Joined: 23 Jun 2008 06:52
Location: Austin, Texas

Need help with find and replace batch

#1 Post by lkarelee » 26 Jun 2008 08:30

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?

greenfinch
Posts: 36
Joined: 17 Jul 2008 07:37

#2 Post by greenfinch » 17 Jul 2008 10:03

I ended up using gsar for things like this:
http://gnuwin32.sourceforge.net/packages/gsar.htm

Post Reply