Computing.Net > Forums > Windows XP > Find and Replace using Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Find and Replace using Batch File

Reply to Message Icon

Name: J-Bizzle
Date: August 25, 2009 at 02:59:15 Pacific
OS: Windows XP
Subcategory: General
Tags: code, batch, find, replace
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: August 25, 2009 at 12:59:27 Pacific
Reply:

Hi

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


0
Reply to Message Icon

Related Posts

See More


How to settle 214 Computer shuts off



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Find and Replace using Batch File

need to do find and replace in a text file , www.computing.net/answers/windows-xp/need-to-do-find-and-replace-in-a-text-file-/175911.html

copy and replace via batch file www.computing.net/answers/windows-xp/copy-and-replace-via-batch-file/146642.html

multiple find and replace www.computing.net/answers/windows-xp/multiple-find-and-replace/175096.html