maybe....
execute "select "< your voc item for your dir >
loop readnext filename else exit
do_stuff
repeat
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 11:39 AM
To: [EMAIL PROTECTED]
Subject: [U2] Counting the number of files in a directory
I'm trying to automate a couple of functions in my ERP system and I need a
little help. Ok, maybe a lot of help. Here's the situation... Our ERP
system has some basic EDI functionality. Unfortunately, it's completely
user-driven. What I want to do is create a UniData program to poll a
directory and, if any files exist, run the 2 functions required to pull
those transactions in. I can handle running the 2 functions and scheduling
the program to run every 30 seconds or so, but I'm not quite sure how to
poll the directory. The directory is D:\Roi\PLACON.MAIN\INBOUND.EDI and the
file I want to check for is EDI.TXT and return a true/false (1/0) to decide
whether to continue processing. Can anyone give me an example of this?
Thanks in advance.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/