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

Re: XPL best practices



Reply to note from Carl Distefano  Sun, 12 Nov 2006
00:32:37 -0500

> Actually, the call to XSR in Patricia's routine is unnecessary.
> The VA@ operator works just as well, with less overhead.

*Actually*, I take that back. One or more directory names in the
filename path (VA$FP) might contain ".", in which case VA@ would
fail; whereas XSR always works. So here's the code again, with the
call to XSR restored:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}LBVersion2c{>}[ZT_]{<}SX50,{<}VA$FP{>}{>}{<}SX01,{<}IS50{>
}{>}{<}SV51,.{>}[JM_]2.XSR[Q2_]{<}SX02,{<}IS52{>}+".wp"{>}{<}
SX03,{<}VAWW{>}{>};*;[cr|lf];*;[cr|lf]{<}SX01,"@echo off[cr|l
f]"+{<}IS03{>}+"W4W17F.EXE "+{<}IS01{>}+" /N /V2[cr|lf]DELAY.
EXE 2 >nul[cr|lf]if exist "+{<}IS02{>}+" del "+{<}IS02{>}+"[c
r|lf]"+{<}IS03{>}+"W4W48T.EXE "+{<}IS02{>}+"[cr|lf]"{>}[BX_]s
a %01,{<}PV03{>}xytowp.bat[Q2_][BX_]wait[Q2_];*;[cr|lf];*;[cr
|lf];*; [BX_]dos/nv/z /c {<}PV03{>}xytowp.bat[Q2_];*; <== un-
comment to run BAT file[cr|lf]{<}SX01,{<}VA$ET{>}{>}{<}PR@01{
{062}}{<}EX{>}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx