Find and Replace using Batch File

August 25, 2009 at 02:59:15
Specs: Windows XP
Hi all,

I've written a couple of simple batch files and
am now trying my
third, but I'm having some trouble. I've read a
few posts about it on
various forums, but I can't quite bend my head
around it, so I'd be grateful for any help!

Mission: write a batch file which replaces
"svrspc01" with
"svrspc01.lispot.de" [or appends the 'lispot.de,
it makes no
difference] in a variety of html files. The html
files are small [5KB]
but there's lots of them in several subfolders.

I've seen a few methods suggested using
'FIND' or 'CHANGE.COM'
but I can't seem to get them to work. I've seen
more posts
mentioning tokens, but that's something which
I can't yet get my
head around.

Any pointers you lot have will be really
apprecaited.

Cheers,
J


See More: Find and Replace using Batch File

Report •


#1
August 25, 2009 at 12:59:27
Hi

The syntax or Change.com is Change Filename "Text1" "Text2" ie change file.txt "Dir" "1234"


Report •
Related Solutions


Ask Question