ReadSqDirectory

Prev Next Home Home Table Of Contents Index

ReadSqDirectory (Path,2DArray)

Second Syntax: ReadSqDirectory (Path,2DFilesArray,2DDirectoriesArray) ReadSqDirectory works like ReadDirectory but rather than just returning the file name it returns all the information about the file in a 2 dimensional array. The fields of the array are as follows:


  1 - Name
  2 - Date last Updated
  3 - Size
  4 - Attributes

Under Netware there are several other fields:


  5 - Date Created
  6 - Date last Accessed
  7 - Date last Archived
  8 - Owner
  9 - Maximum Rights Mask (Directories)

If ReadLongNames is set to ON and the file system supports Windows 95 type long names:


  5 - Date Created
  6 - Date last Accessed
 10 - Long File Name

Example:
Var X ReadSqDirectory('*.EXE',X) Writeln 'Listing File Name, Date Last Accessed, and Size.' Loop X Writeln LoopVal[1] ' ' DateString(LoopVal[2]) ' ' LoopVal[3] EndLoop

Second Syntax: ReadSqDirectory (Path,2DFilesArray,2DDirectoriesArray)

If you pass two array variables, ReadSqDirectory will read the files into one 2 dimensional array and the directories into a second 2 dimensional array.

See Also: WholeFileNames HiddenAndSystem IncludeDirectories
DirectoriesOnly ReadDirectory ReadLongNames
WholeDirectoryNames

Category: Array Directory LongName

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home