===============================================================================
        Mark T. Houpt
        BAT-Systems Consulting
        429 North Sandusky Avenue
        Upper Sandusky,  OH   43351
        Compuserve 70142,2720
===============================================================================

 * GETFILES.EXE  - Nov 1, '93
 * Copyright Mark T. Houpt

3/20/94
Now also return the File Time and File Directory.

PURPOSE:

The goal of GETFILES.EXE is to allow the Paradox developer an easy means
to determine the existance, size or file date of files from within a PAL
script or from the DOS command line.  Whereas PAL allows for an IsFile()
function ot the use of the inventory menu item or the FileSize() fuction
to determine the existance of a file or the files size, there are some
limits with these approaches.  First, Inventory or IsFile() only looks
in the current directory or a single other directory under script
control.  FileSize() only reports the actual space used by the file as
apposed to the size of the file.  GETFILES overcomes these limitations
by accepting up to 9 filespec params, including wild cards, thus
allowing for the programmer to check for multiple files with differing
extensions or in many different directories or drives in one use of the
PAL RUN Command.

OPERATION:

GETFILES should be installed in a directory on your PATH or in the
current WORKING directory of your PAL application.  Use of the program
will create a text file called FILELIST.TXT in the directory from which
it is run.  This file can be imported and parsed to create a file
similar to the Paradox LIST file which will contain the names of all
files found matching the FILESPEC passed to the program.  The file size,
as would be shown by the DOS DIR command and the date of the file are
also returned


Technical Details:

GETFILES.EXE was created using Hyperkinetix Inc. BUILDER program and
compiler.  It returns no DOS errorlevel.  If the program locates files
matching the filespec passed on the command line, it creates a file
called FILELIST.TXT       IE:


DDIR.DB      4,096       03-21-1994  07:28:20  D:\CISDISK\
DOSDIR.DB    7,168       03-21-1994  07:28:22  D:\CISDISK\
CISMSG.EXE   135,926     02-28-1994  11:35:56  D:\CISDISK\
CISTATS.EXE  178,432     02-26-1994  23:26:02  D:\CISDISK\
DLS.EXE      176,480     02-26-1994  09:17:18  D:\CISDISK\
GETFILES.EXE 13,773      03-21-1994  07:33:28  D:\CISDISK\
IMPORT.EXE   12,370      02-27-1994  15:22:02  D:\CISDISK\
PXENGUT.EXE  192,034     02-27-1994  16:29:58  D:\CISDISK\
GFILES.SC2   4,864       03-21-1994  07:19:56  D:\CISDISK\
{PE}.SC2     3,328       03-21-1994  07:19:54  D:\CISDISK\
CONFIG.SYS   3,207       03-18-1994  16:29:22  C:\
FSFILTER.SYS 12,300      01-29-1994  17:34:00  C:\
MTH.SYS      3,053       03-07-1994  14:43:06  C:\
AUTOEXEC.BAT 531         03-10-1994  08:23:06  C:\
AUTOPDOX.BAT 373         11-17-1993  14:05:00  C:\


USE:

GETFILES [FileSpec] [FileSpec] [FileSpec] etc (Up to nine FileSpecs)

Examples:
Getfiles *.MSG

GetFiles *.MSG *.CAT

GetFiles C:\dos\*.exe d:\*.bat c:\pdox40\PDOX??.CFG

From a Pal Script:

  run norefresh "GetFiles *.DB C:\*.sc G:\Test\*.exe"

  run norefresh "GetFiles *.DB *.exe *.sc2"

Please See the GFiles.SC file for an example of how to parse and use the
results from GETFILE.EXE
