Re: Forms 4.5 FindFile or Directory function

From: Loyal Barber <lbarber_at_flash.net>
Date: 1997/04/15
Message-ID: <3353D1A1.40D8_at_flash.net>#1/1


Greg Cobb wrote:
>
> I am trying to import a set of files into a directory, using TextIO
> package. However, there does not seem to be a method of importing a set of
> files within a filesystem directory. I need to import all files in a
> specified directory beginning with the letter "P". I would like to use a
> function like FindFile("P*", DirectoryName) or a fuction which would give
> me a list of files in a directory, so that I could scan through these and
> import all files in a directory into an Oracle Table. I have already
> looked at the supplied Oracle libraries, but cannot seem to find such a
> utility.
>
> Can anyone help?
>
> gpbcobb_at_btinternet.com
I have done something similar, but I doubt you will like the solution: In win 3.1, I have a windowed .pif file associated with a .bat file (so I can make it windowed) that performs a DOS dir command based on specified input. For example:

c:
cd \yourmama\stuff
dir p*.* > c:\tmp\pstuff.txt

Then I use textio to read the file. I call the .bat file using the "host" command. BTW, the same command in win95 doesn't even create a window as it does under win3.1.

Loyal Barber
MCI Systemhouse Received on Tue Apr 15 1997 - 00:00:00 CEST

Original text of this message