File System

This object is a collection of functions you can use if you are writing a service that works with files. It originated in the sample program 'Filesys' in the FreeCode section of my website.

Function Name

Description

of_calcfileattributes

Called by of_SetFileAttributes.

of_checkbit

Determines if a certain bit is on or off within the number.

of_dirsexist

Determines if any directories exist with the passed path.

of_filedatetimetopb

Converts file system datetimes to a PB datetime.

of_filesexist

Determines if any files exist with the passed path.

of_getdiskfreespace

Returns the amount of space on the drive.

of_getdrives

Returns a list of disk drives with their type and volume label.

of_getdrivetype

Determines a drive's type (fixed, CD-ROM, RAM disk, or network).

of_getfileattributes

Returns attributes of the specified file.

of_getfiledescription

Gets a file's description from registry.

of_getfiles

Returns a list of files in a directory.

of_getfolderpath

Returns the path to a shell folder.

of_gettemppath

Returns the system temporary file directory.

of_getvolumelabel

Returns the volume label for local files.

of_setfileattributes

Determines if any files exist with the passed path.

of_wnetgetconnection

Retrieves the name of the network resource associated with a local device.