[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re converting from XyWrite to Word
- Subject: Re converting from XyWrite to Word
- From: Patricia M Godfrey pmgodfrey@xxxxxxxx
- Date: Wed, 27 Oct 2004 18:27:15 -0400
Here's the routine I use for converting the currently open XyWrite file
to Word; there's a similar one for WordPerfect. The code is 95 percent
Robert Holmgren's; I just did a little scissors-and-paste work to
automate the writing of the batchfile. It won't work under Xy3, since it
calls a U2 routine and uses some Xy4 commands. Perhaps somebody who uses
Xy3 more than I do can figure out a fix?
To use this, first save the following block of text as xytortf.cod (in
the directory where editor.exe is, assuming that's your default dir);
change the first line to CD to whatever directory/folder you have the
Hungarian filters in:
cd d:\xyhung~1\
@echo off
echo Export XyWrite %1 to Rich Text Format %2
W4W17F.EXE %1 /N /V2
echo WAIT a few seconds for conversion to delete temp files
pause
if exist %2 del %2
W4W19t.EXE %2 /N /V1
echo Done
goto exit
:exit
Then decode this and save as a program file in the same directory as
xytortf.cod. I call it xytortf.pgm (easy to remember).
XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX50,{<}VA$FP{>}{>}{<}SV51,.{>}[JM_]2.XSR[Q2_]{<}SX01,{<}I
S52{>}+".rtf"{>}[BC_]ca xytortf.cod[XC_][BC_]ci |%1|{<}PV50{>
}|[XC_][TF_][BC_]ci |%2|{<}PV01{>}|[XC_][BC_]exist xytortf.
bat[XC_]{<}IF{<}ER{>}{>}{<}GLwrite{>}{<}EI{>}[BC_]ERNV xyto
rtf.bat[XC_]{<}LBwrite{>}[BC_]store xytortf.bat[XC_][BX_]de
fault EP=1,1,1,1,1,1,1[Q2_][cr|lf]
-nd
XPLeNCODE
Patricia