FileUtil.dll - Overview

FileUtil.DLL is for RBase 7.6 and up users that provides a handfull of
useful file Information Utilities. 
The FileUtil.dll is called using RBase DLCall function. 
There are (7) seven functions the dll exports that are callable by RBase.
The function declarations and return types are shown as they are declared in
Delphi Pascal.
All Delphi declarations are StdCall.

The Delphi Function Declarations: 
function GetFileAttr (FileName : PChar ) : PChar; StdCall; 
function GetFileCount(DirPathName : PChar; SearchExt : PChar) : Integer;
StdCall; 
function GetFileInfo( FileName : PChar; ArrayElement: PChar) : PChar;
StdCall; 
function GetFileList (DirPathName : PChar; SearchStr : PChar) : PChar;
StdCall; 
function GetFileSize (AFile : PChar) : PChar; StdCall; 
function GetVerInfo(FileName : PChar; NamedElement : PChar) : PChar;
StdCall; 
function SetDelimiter (pcDelimit : PChar) : PChar; StdCall; 
PChar returns to RBase can be as type TEXT, NOTE, or VARCHAR as the
circumstances require.
Maximum length of return values to RBase is limited to 32k (32767 data bytes
plus null char).


www.byerley.net

Then Select  > Software > MiscUtils > FileUtils.zip


> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Michael
> J. Sinclair
> Sent: Wednesday, July 09, 2014 6:21 PM
> To: RBASE-L Mailing List
> Subject: [RBASE-L] - Checking for the existence of PDF files?
> 
> Hi All,
> Is there a way to check to see if there are any PDF files (or any other
> specific extension) in a folder? or better yet get a count of the
> number of files based on a file extension in a folder?
> As of now, I capture the output of the DIR command and extract the
> information form the output.
> Is there a better way?
> Mike


Reply via email to