HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2007, 01:46 AM
kang
 
Posts: n/a
Default bach convert doc files to text format files(eg.xml or html) and viceversa.

I have to do some search and replace jobs for bunch of doc files.
I have a idea to do the jobs in a handy way.
Convert them to text formats and do the search and repalce jobs and
convert back to the doc formats.

As I know Word doesn't support the batch converting job, is there a
utility or something for batch converting?

TIA
Reply With Quote
Sponsored Links
  #2  
Old 09-05-2007, 02:12 PM
Tim Slattery
 
Posts: n/a
Default Re: bach convert doc files to text format files(eg.xml or html) and vice versa.

kang <kang@hao.com> wrote:

>I have to do some search and replace jobs for bunch of doc files.
>I have a idea to do the jobs in a handy way.
>Convert them to text formats and do the search and repalce jobs and
>convert back to the doc formats.


I see a problem right away. When you convert from doc to text you lose
whatever formatting you specified in the doc. When you convert back
from text to doc, there's no way to recover that information.

>As I know Word doesn't support the batch converting job, is there a
>utility or something for batch converting?


I would investigate Word's support for VBA (Visual Basic for
Applications). You should be able to write something to perform your
task in that language, and run it right inside Word.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
Reply With Quote
  #3  
Old 09-05-2007, 04:15 PM
Bob I
 
Posts: n/a
Default Re: bach convert doc files to text format files(eg.xml or html) andvice versa.

You could likely do it with a combination of batch/script and a Macro.
Take a look at "AutoIT" as a possible solution. I've used it to do
multiple search and replace in .PDF files.

http://www.autoitscript.com/autoit3/

kang wrote:

> I have to do some search and replace jobs for bunch of doc files.
> I have a idea to do the jobs in a handy way.
> Convert them to text formats and do the search and repalce jobs and
> convert back to the doc formats.
>
> As I know Word doesn't support the batch converting job, is there a
> utility or something for batch converting?
>
> TIA


Reply With Quote
  #4  
Old 09-05-2007, 04:22 PM
HeyBub
 
Posts: n/a
Default Re: bach convert doc files to text format files(eg.xml or html) and vice versa.

kang wrote:
> I have to do some search and replace jobs for bunch of doc files.
> I have a idea to do the jobs in a handy way.
> Convert them to text formats and do the search and repalce jobs and
> convert back to the doc formats.
>
> As I know Word doesn't support the batch converting job, is there a
> utility or something for batch converting?
>


Google search for (search+replace+multiple+doc+files) yields zillions of
hits (30,600,000).

Among the first few are several programs that will do the job.

Here's a free one:
http://www.dirfile.com/multiple_file...nd_replace.htm


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .WAV files to CDa files Roger Shlomo Harris CD Recording 8 07-28-2007 06:23 PM
IE 7 in Vista won't load .swf files unless called from html? lforbes Windows Vista 5 07-24-2007 07:56 AM
Desktop and HTML Files billbrandi Windows Vista 2 06-13-2007 04:18 AM
zip files of pictures show up as text files SandyDee Windows Vista 3 05-22-2007 03:07 AM


All times are GMT. The time now is 06:35 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger