.doc to .txt batch converter?

C

casioculture

Anyone knows a .doc to .txt batch converter? (i.e from MS Word format
to plain text)

Thanks
 
B

B. R. 'BeAr' Ederson

Anyone knows a .doc to .txt batch converter? (i.e from MS Word format
to plain text)

You can do this with a macro. (Ask within a Winword related group for
details.) Here is a suggestion I use (for *.rtf - but that doesn't
matter...):

Sub SaveAsTxt()
Dim sFName As String
sFName = ActiveDocument.FullName
If ActiveDocument.SaveFormat = wdFormatDocument And _
Right(sFName, 4) = ".doc" Then
ActiveDocument.SaveAs FileName:=Left(sFName, Len(sFName) - 4) & _
".txt", FileFormat:=wdFormatText
End If
ActiveDocument.Close
If Application.Documents.Count = 0 Then
Application.Quit
End If
End Sub

Using the command line parameter /m for Winword you could either create
a 'Shell\Convert' shortcut for *.doc files (inside the registry):

"[PTW]\winword.exe" /mSaveAsTxt "%1"

or make a touch-to-Txt batch:

for %%i in (*.doc) do [PTW]\winword.exe /mSaveAsTxt "%%i"

Replace [PTW] with the path to your Winword executable in both cases. ;-)

BeAr
 
O

old jon

casioculture said:
Anyone knows a .doc to .txt batch converter? (i.e from MS Word format
to plain text)

Thanks

MS Word. Save as. .txt . Of course you lose your formatting `cos it`s no
longer a RTF doc (Rich Text Format). best wishes..J
 

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

Top