Next Topic

Previous Topic

Book Contents

GetFileList

string GetFileList(string sDirectory,string sWildCard)

Return values

Returns a string with the listed files separated with a carriage return; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sDirectory - Path of the directory.
  • sWildCard - Wild card to filter out wanted files. To retrieve all files in the directory use the *.* wild card.

Remarks

The return string contains all files in the directory matching the supplied wild card. Each file is returned with its full path. Files in string is separated with a carriage return sign.