 | 













  |  | System Info GetDiskFree | METHOD | GETDISKFREE | | Description | This method returns a string containing the number of bytes free on a given disk. | | | | | PARAM1 | Drive letter to get the free space for. Pass null to use the current drive. | | PARAM2 | String containing the number of bytes free on the specified disk. | | PARAM3 | n/a | | PARAM4 | n/a | | PARAM5 | n/a | | | | | Code Sample | drive = "D" bytesFree = "" if zz_Utility_Dll("GETDISKFREE", drive, bytesFree, "", "", "", "", errorText ) then
* bytesFree contains what was chosen end else
* Handle error - see errorText var end |
| METHOD | GETDRIVES | | Description | Returns a field mark delimited list of drive information | | | | | OBJECT | Return a field mark delimited dynamic array representing the drives on the system. Each field is value mark delimited as follows | <0,ZZ16GDR_POS_DRIVETYPE$> | Drive Type - a digit representing the type of drive found with the integers as follows :- | ZZ16GDR_DRIVETYPE_UNKNOWN$ | Unknown | | ZZ16GDR_DRIVETYPE_NONE$ | No drive | | ZZ16GDR_DRIVETYPE_FLOPPY$ | Floppy disk (includes all removable disks such as Zip drives) | | ZZ16GDR_DRIVETYPE_FIXED$ | Fixed disk (hard drive) | | ZZ16GDR_DRIVETYPE_NETWORK$ | Network drive | | ZZ16GDR_DRIVETYPE_CDROM$ | CD Rom drive | | ZZ16GDR_DRIVETYPE_RAM$ | RAM drive |
| | <0,ZZ16GDR_POS_DRIVELETTER$> | Drive Letter | | <0,ZZ16GDR_POS_DRIVELABEL$> | Drive Label |
| | PARAM1 | n/a | | PARAM2 | n/a | | PARAM3 | n/a | | PARAM4 | n/a | | PARAM5 | n/a | | ERRORTEXT | Any error message | | | | | Code Sample | RetVal = zz_Utility_Dll("gETDRIVEs", Drives) DriveCount = Count(Drives, @Fm) + 1 Msg = 'Your drives are as follows :-' DriveString = "Unknown,None,Floppy,Fixed,Network,CD Rom,RAM" For X = 1 To DriveCount
Msg := \0D0A\ : Drives<X,2> : ": - " : Field(DriveString, ",", Drives<X, 1> + 1) : " - " : Drives<X,3>
Next Call Msg(@Window, Msg) | | Screen dump |  |
[top] | METHOD | GETFOLDERS | | Description | Return a field mark delimited dynamic array of the folders below the folder specified. Note that only the folders directly below the current folder will be returned. To drill down a directory recursive calls must be made. | | OBJECT | Directory to start at | | PARAM1 | If this parameter is set the directory listing is sorted in ascending left justified order before being returned. | | PARAM2 | n/a | | PARAM3 | n/a | | PARAM4 | n/a | | PARAM5 | n/a | | ERRORTEXT | Any error message | | | | | Code sample | RetVal = zz_Utility_Dll("getfolders", "\program files",Folders,1) FolderCount = Count(Folders, @Fm) + 1 Msg = 'Your folders are as follows :-' For X = 1 To FolderCount
Msg := \0D0A\ : Folders<X>
Next Call Msg(@Window, Msg) | | Screen dump |  |
[top] 
|  | |  |  |