Scott,

Change your Unix command to:-

EXECUTE "SH -c 'test -e ":FILENAME:" && echo yes || echo no'" CAPTURING XXX

XXX will contain "yes" or "no" depending on whether the file exists. That is 
subject to your access to the file and it parent folder tree.  So "no" could 
mean that the file cannot be seen by you.

This will be faster than using "ls".


Jeffrey Lee
Senior Analyst/Programmer

IT Vision Australia Pty Ltd (ABN: 34 309 336 904)
PO Box 881, Canning Bridge WA 6153
Level 3, Kirin Centre, 15 Ogilvie Road, Applecross, WA, 6153
P:  (08) 9315 7000    F:  (08) 9315 7088
W: http://www.itvision.com.au
___________________________________________________________

NOTICE : This e-mail and any attachments are intended for the addressee(s) only 
and may
contain confidential or privileged material. Any unauthorised review, use, 
alteration,
disclosure or distribution of this e-mail (including any attachments) by an 
unintended recipient
is prohibited. If you are not the intended recipient please contact the sender 
as soon as
possible by return e-mail and then delete both messages.
___________________________________________________________
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to