Convert DOC to RTF

D

dkg_ctc

Are there any programs that will convert Word DOC files to RTF
files?

If you mean in batches, I'm not aware of one (although I'm sure there
are some out there). If you mean a few individual documents, you can
open the .DOC file in Wordpad, and then save it as RTF.
 
F

Fanman Uk

Are there any programs that will convert Word DOC files to RTF
files?

thanks

AC
I have searched for this beast in the past with no success. The only
program I found for making batch conversions of MS doc to rtf was
CZ Document Converter. Unfortunately it is NOT freeware :blush:(


Fanman Uk.

To reply by email remove the "fanman."
 
A

Alan

:
If you mean in batches, I'm not aware of one (although I'm sure there
are some out there). If you mean a few individual documents, you can
open the .DOC file in Wordpad, and then save it as RTF.


I was hoping to do it in batches, but the Wordpad way works fine.
Thats the way I've been doing it up to now.

Alan
 
S

Sietse Fliege

Alan said:
:



I was hoping to do it in batches, but the Wordpad way works fine.
Thats the way I've been doing it up to now.

I take it that you do not have Word?
Because Word lets you do it with a Wizard Batch conversion.
 
F

Frank Hahn

(e-mail address removed) (Fanman Uk) wrote in
I have searched for this beast in the past with no success. The only
program I found for making batch conversions of MS doc to rtf was
CZ Document Converter. Unfortunately it is NOT freeware :blush:(
The latest versions (I know that OpenOffice Version 1.1.0 RC3 has this)
of OpenOffice have the ability to create macros. Could a macro possibly
be written within OpenOffice to help with this conversion?
 
A

Adrian Carter

I recently found out about AutoIt ( http://www.hiddensoft.com/AutoIt/ ) via
this NG,
and am enjoying finding out its many useful capabilities. I think it very
likely that you
could use it to build a Word to RTF converter, by automating the process of
opening your doc(s) in WordPad and saving into RTF.
I will have a go at this myself; if successful I will post the script that I
come up with.

HTH,
Adrian Carter
 
A

Adrian Carter

An AutoIt script to convert Word to RTF in batches was not so hard.
Here it is, hope it helps.

Adrian

; ==============================================
; AutoIt script to convert Microsoft Word documents to
; rich text format using WordPad. Each RTF file is stored
; in the same directory as its originating MS Word document,
; and has the same file name with a RTF extension.
; The list of Word document names is acquired from the
; clipboard - preferably fully qualified.
; In the interests of brevity for posting to the NG, this
; script performs no error checking - eg. if RTF file
; already exists. It also assumes that Word documents have
; a file extension of ".DOC". Anyone wishing to make serious
; use of this script is advised to add some minimal error
; processing.
;
; I have carried out a reasonable level of testing but
; cannot be held responsible for any adverse consequences
; arising from use of this script. Use at your own risk.
;
; Oh yes, one more caveat. I built and tested this under
; Windows 2000 Professional. I am unable to say how or
; whether it will perform under other flavours of Windows.
;
; Adrian Carter
; Sept 18, 2003

; ==============================================
; Look for window title text anywhere in string
SetTitleMatchMode, 2
; Capture list of Word doc names from clipboard;
SetEnv,TheDocs,%Clipboard%
; Start WordPad & wait for it to start
Run, "C:\\Program Files\\Windows NT\\Accessories\\WordPad.exe"
WinWaitActive, - WordPad

Start:
; Extract next Word document
StringLen, L, TheDocs
IfEqual, L, 0, GoTo, ExitPoint
StringGetPos, P, TheDocs,\n
IfEqual, ErrorLevel, 1, GoTo, LastOne
SetEnv, RemLen, %L%
EnvSub, RemLen, 1
EnvSub, RemLen, %P%
EnvSub, P, 1
StringLeft, NextDoc, TheDocs, %P%
StringRight, Remainder, TheDocs, %RemLen%
StringReplace, NextRTF, NextDoc,.doc,.rtf
SetEnv, TheDocs, %Remainder%

; Up to here, we were just building filenames.
; Now we get WordPad to open the doc and save the rtf
GoSub, Convert
GoTo, Start

LastOne:
; Set doc & rtf names
SetEnv, NextDoc, %TheDocs%
StringReplace, NextRTF, NextDoc,.doc,.rtf

; Execute conversion
GoSub, Convert
GoTo, ExitPoint

Convert:
; Shortcut to File|Open
Send,^o
; Type name of Word doc
Send,%NextDoc%
; Press ENTER key
Send,{ENTER}
; Shortcut to File|SaveAs
Send,!fa
; Type name of RTF file
Send,%NextRTF%
; Press ENTER key
Send,{ENTER}
Return

ExitPoint:
; Close WordPad
Send,!fx
Exit
; ==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top