Mike:  In the meantime, until there's a DLL that does this nicely
for you, you can go "old school" and load a directory into a table
and get all the info from there:

CREATE TEMP TABLE DiskDirTemp (DirFileName TEXT 8, DirFileExt TEXT 3, 
DirFileSize INT, DirFileDate DATE, DirFileTime TIME, DirFileAorP TEXT 1)

OUTPUT tempfile.txt
DIR &vfilename
OUT SCR

LOAD DiskDirTemp FROM tempfile.txt AS FORMATTED USING +
  DirFilename 1 8,  DirFileExt 10 12, DirFileSize 14 23, DirFileDate 26 33, 
DirFileTime 36 40, DirFileAorP 41 41

DELETE ROWS FROM diskdirtemp WHERE dirfilesize IS NUL AND dirfiledate IS 
NULL

Karen


In a message dated 12/19/2011 12:26:47 PM Central Standard Time, 
[email protected] writes: 
> There are a few scenarios where this would be helpful.
> 
> First checking for the existance of any file in the folder would be 
> helpful 
> for error handling.
> 
> Sometimes files are created which should have a minmum size if the data is 
> 
> good. Corrupt data ends up creating a file that is smaller than a certain 
> size. Being able to check for the existance of any files with a filesize 
> that is smaller than a predetermined limit would help the application to 
> call for help, call a different app, send an email etc.
> 
> Looking for the existance of a certain number of files such as jpg files 
> could trigger an app to create a single pdf file out of the group of jpg 
> files.
> 
> I would like to be able to count the number of files using various 
> criteria 
> and display them by changing the properties (color and text) of certain 
> buttons that do things to the files, ie red for no files, green plus a 
> number to indicate the presence of a certain number of files in a folder.
> 
> Mike

Reply via email to