[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Using XyWrite file in Word and saving as text document



Reply to note from Harry Binswanger  Fri, 24 Nov
2006 14:35:32 -0500

> And when I now try SA/RTF again, on a different file, it
> "succeeds" in showing me the .RTF made from running the .BAT
> file in DOS.

In other words, you're seeing the output from the previous (manual)
run of the BAT file, not the RTF code from the current ("different")
input file? If so I don't understand how that can be, because
SA/RTF erases any existing copy of the output file before it writes
and launches the BAT file. Or are you saying something else?

> So it looks like the problem is the .BAT file is not being run.
> ... I don't see any evidence that it's shelling to DOS at all.

When you have a moment, try this test version of SA/RTF. (DECODE it
and CoPy it into your U2 file near the top of the file; issue
LOADHELP to reload U2.) I've inserted a PAUSE in the
manufactured BATch file. If you see the pause and are prompted to
hit a key to continue, then the BATch file is running; if not, not.

Let me know, please.

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5sa/rtf*,sa/htm*,sa/txt*,sa/xy*}} SAve file|DF block as RT
F|HTML|TeXt|XY4 (Xy4DOS only; uses XyShell if installed) [CLD
 Rev.11/24/06-test][cr|lf]{002}[XH_][BX_]es 1[Q2_]{<}SX01,{<}
VA@50{>}{>}{<}IF{<}VA$VE{>}>"V4.099"{>}{<}PRXyWrite 4 (DOS) o
nly{>}{<}EX{>}{<}EI{>}{<}IF"\"{238}{<}VAWW{>}<0{>}{<}SX02,"Se
t DF WW in "+{<}VA$DL{>}{>}{<}PR@02{>}{<}EX{>}{<}EI{>}{<}IF{<
}VA$WS{>}<1{>}{<}PRNo file{>}{<}EX{>}{<}EI{>};*;[cr|lf]{<}IF{
<}VA$FI{>}=="[UNTITLED]"{>}[BX_]sa/nv UNTITLED.$FI[Q2_]{<}IF{
<}ER{>}{>}{<}SX02,{<}VA$ER{>}{>}{<}SX02,"{<}VA\"+{<}IS02{>}+"
{>}"{>}{<}SX02,{<}PV02{>}{>}{<}PR@02{>}{<}EX{>}{<}EI{>}[BX_]w
ait[Q2_]{<}EI{>};*;[cr|lf][DZ_]{<}IF{<}VA$MO{>}>0&{<}VA$DE{>}
<1{>}{<}PRFile modified - SAve or ReCAll it before conversion
{>}{<}EX{>}{<}EI{>}{<}SX02,{<}VA$WA{>}{>}{<}IF{<}PV02{>}<1{>}
{<}PRNo window{>}{<}EX{>}{<}EI{>}{<}PRWorking...{>}{<}SX03,{<
}VA$FP{>}{>}{<}IF{<}VA$WS{>}>1{>}{<}SX03,{<}VA$DR{>}{>}{<}EI{
{062}}{<}SV04,{>}{<}SX05,@upr({<}VA$FR{>}){>}{<}SV06,{>}{<}IF{<}I
S05{>}{240}"/NV"{>}{<}SV06,!{>}{<}SV07,/NV{>}{<}SV08,{>}{<}XS
05,07,09,,08{>}{<}SX05,{<}IS09{>}+{<}IS08{>}{>}{<}EI{>}{<}SX0
5,{<}VA@05/2{>}{>}{<}IF{<}VA|05{>}>3{>}{<}SV07,{027}X{027}X{0
27}X{>}{<}XS05,07,,07,08{>}{<}SX05,{<}IS07{>}{>}{<}EI{>};*;[c
r|lf]{<}SX50,{<}VA$KB{>}{>}[JM_]2.GetPath[Q2_]{<}SX09,{<}IS50
{>}{>};*;[cr|lf]{<}IF{<}VA$DE{>}>0{>}{<}SV04,TMP{>}{<}IF@siz(
{<}VA@03.2{>})>0{>}{<}SX04,{<}VA@03.2{>}{>}{<}EI{>}{<}SX03,{<
}IS09{>}+"\SA!"+{<}IS05{>}+"."+{<}IS04{>}{>}[BX_]sad/nv {<}PV
03{>}[Q2_][BX_]wait[Q2_]{<}EI{>};*;[cr|lf]{<}SV07,17{>}{<}SV0
8,2{>}{<}SV10,XY4{>};*; from Xy4 (or TeXT)[cr|lf]{<}IF{<}IS03
{>}{240}".HTM"&{<}VA|06{>}<1{>}{<}SV07,108{>}{<}SV08,0{>}{<}
SV10,HTM{>}{<}EI{>};*; from HTML[cr|lf]{<}IF{<}IS03{>}{240}".
RTF"&{<}VA|06{>}<1{>}{<}SV07,19{>}{<}SV08,0{>}{<}SV10,RTF{>}{
<}EI{>};*; from RTF[cr|lf]{<}IF{<}VA$DE{>}<1&{<}VA$WS{>}==1&{
<}VA|06{>}<1{>}{<}SX50,{<}CP{>}{>}[TF_][BX_]se [wO][Q2_]{<}IF@not({<}ER{>}){>}[JM_]2.ReJuMP[Q2_]{<}S
V07,108{>}{<}SV08,0{>}{<}SV10,HTM{>}{<}EI{>};*; from HTML[cr|
lf]{<}IF{<}VA|06{>}<1{>}{<}SX50,{<}CP{>}{>}[TF_][BX_]se {\rt
f[Q2_]{<}IF@not({<}ER{>}){>}[JM_]2.ReJuMP[Q2_]{<}SV07,19{>}{<
}SV08,0{>}{<}SV10,RTF{>}{<}EI{>}{<}EI{>}{<}EI{>};*; from RTF[
cr|lf]{<}SV11,19{>}{<}SV12,0{>};*; to RTF[cr|lf]{<}IF{<}IS05{
{062}}{240}"HTM"{>}{<}SV11,108{>}{<}GLa{>}{<}EI{>};*; to HTML[cr|
lf]{<}IF{<}IS05{>}{240}"TXT"{>}{<}SV11,01{>}{<}GLa{>}{<}EI{>}
;*; to TeXT[cr|lf]{<}IF{<}IS05{>}{240}"XY"{>}{<}SV11,17{>}{<}
SV12,2{>}{<}EI{>};*; to Xy4[cr|lf]{<}LBa{>}{<}SX50,@upr({<}IS
01{>}){>}{<}IF{<}IS50{>}=="/NV"{>}{<}SV50,{>}{<}EI{>}{<}IF{<}
VA|50{>}<1{>}{<}SX50,{<}IS09{>}+"\"+{<}IS10{>}+"2"+{<}IS05{>}
+"."+{<}IS05{>}{>}{<}EI{>}{<}IF"."{238}{<}IS50{>}<0{>}{<}SX50
,{<}IS50{>}+"."+{<}IS05{>}{>}{<}EI{>};*;[cr|lf][BX_]ernv {<}P
V50{>}[Q2_][BX_]wait[Q2_];*;[cr|lf][DX_][BX_]gofile {<}PV50{>
}[Q2_]{<}IF@not({<}ER{>}){>}[BX_]ab/nv[Q2_]{<}EI{>};*;[cr|lf]
[BX_]func #{<}PV02{>}[Q2_];*;[cr|lf]{<}SX02,{<}IS09{>}+"\W4WT
EMP.BAT"{>}{<}SX09,"@echo off[cr|lf]echo %0 is running[cr|lf]
pause[cr|lf]"+{<}VAWW{>}+"W4W"+{<}IS07{>}+"F.EXE "+{<}IS03{>}
+" /n /v"+{<}IS08{>}+"[cr|lf]"+{<}VAWW{>}+"W4W"+{<}IS11{>}+"T
{046}EXE "+{<}IS50{>}+" /n /v"+{<}IS12{>}{>}[BX_]sa %09,{<}PV02{>
}[Q2_][BX_]wait[Q2_];*;[cr|lf];*; Conversion: Use XyShell if{032}
installed (non-Win OSes only)[cr|lf]{<}SV99,XyShell_Installe
d_Y|N{>}[JM_]2.RegData/N[Q2_]{<}IF@upr({<}VA@99{>})=="Y"&"W"{
238}{<}VA@652=2{>}<>0{>};*;[cr|lf]{<}SX03,{<}IS50{>}{>}{<}SX5
0,{<}IS02{>}{>}[JM_]2.s2[Q2_][JM_]2.AwaitDel[Q2_];*;[cr|lf]{<
}LBb{>}{<}SX02,50000{>}{<}SX04,"Waiting for "+{<}IS03{>}{>}{<
}PR@04{>}{<}CUc,02{>}[BX_]ca {<}PV03{>}[Q2_]{<}IF@not({<}ER{>
}){>}[JM_]2.reca[Q2_]{<}PRSource file is in alternate screen{
{062}}{<}EX{>}{<}EI{>}{<}LBc{>}{<}PR{012}Conversion failed{>}{<}E
X{>}{<}EI{>};*;[cr|lf];*; Else shell to DOS to convert[cr|lf]
[BX_]dos/nv/z /c {<}IF"W"{238}{<}VA@652=2{>}==0{>}kmd.exe /c{032}
{<}EI{>}{<}PV02{>}[Q2_][BX_]wait[Q2_];*;[cr|lf][BX_]p[Q2_][BX
_]exist {<}PV50{>}[Q2_]{<}IF@not({<}ER{>}){>}{<}SX03,{<}IS50{
{062}}{>}{<}GLb{>}{<}EI{>}{<}GLc{>}{002}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx