IFile Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

File
The IFile interface is useful for directory and file operations.

Property/Method

Description

AccessedDate

Gets the date and time when a file or directory was last accessed.

Computer

Returns the name of the computer on which a file or directory exists

CreatedDate

Gets the date and time when a file or directory was created.

IsArchive

Returns True if the given object has the Archive attribute set

IsCompressed

Returns True if the given object is compressed

IsDirectory

Returns True if the given object is a directory

IsHidden

Returns True if the given object is hidden

IsReadOnly

Returns True if the given object is read-only

IsSystem

Returns True if the given object has the System attribute set

Location

Gets the location of a file or directory.

ModifiedDate

Gets the date and time when a file or directory was last modified.

MSDOSName

Gets the name of a file or directory in MS DOS (8.3) format.

RelativePath

Returns the full path of a file or directory relative to a computer

SetAttribute

Sets the attribute of a file or directory. A preceding minus sign (-) removes an attribute.

ShareName

Gets the sharename of a file or directory

Size

Gets the size of a file in bytes. It returns Zero for directories.

StartSharing

Starts the sharing of a directory with a new sharename and descriptive string for a specified number of users.

StopSharing

Stops the sharing of an existing shared directory

UNCPath

Gives the name of the volume in which the File/Directory exists.

VolumeType

Returns the type of the volume e.g. NTFS or FAT