Thanks for the reply. Unfortunately I was not clear on my intent. I would like to do this as a batch process without user intervention. I want to process all files in the given directory.
P.S. I have used the LoadFileName.rbl and it is a great plugin!
[EMAIL PROTECTED] wrote: -----To: [email protected] (RBG7-L Mailing List)
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
Sent by: [email protected]
Date: 04/06/2005 11:07PM
Subject: [RBG7-L] - Re: Capturing a listing of files in a directory andimporting it into Rbase
At 10:42 PM 4/6/2005, Chuck Finley wrote:
>I have a need to capture file names (to process in rbase) from a
>designated directory. The names will always be a static format and
>length, but will change (file0001.txt , file0002.txt...). Only files
>that need processing will be in the directory. My thought was to:
>
>output tempfile.txt
>dir
>output scr
>
>use the gateway command to import into a temporary table and use
>declare cursor and (sget(.vTemp) to capture the filenames. Is there
>a better way? I'm always afraid that I've missed a function that will
>do what I want very easily.
Chuck,
A few suggestions:
01. Use the File ListBox Control (part of File System Controls) in
Form Designer to create a nice interface to achieve your goal.
Form Designer | File System Controls | File ListBox Control ...
02. Use the #LFILES option of the CHOOSE command to manage the list
as well as the selection of given file(s).
HELP CHOOSE
03. Use the LoadFileName.RBL or LoadFileNamePlus.RBL PLUGINs to manage
the entire goal of capturing and managing files.
http://www.razzak.com/fte (From The Edge:)
http://www.razzak.com/sampleapplications (Sample Applications)
Hope that helps!
Very Best R:egards,
Razzak.
