FileSystemObject Object (VB6)

Description

The FileSystemObject object is at the top level of the File System object model and is the only externally createable object in the hierarchy; that is, it's the only object you can use the New keyword with. For information about the FileSystemObject object's properties and methods, see the entry for each property and method.

See the File System object model entry for an overview, including the library reference needed to access it.

Createable

Yes

Properties

Drives (returns a Drives collection object)

Methods

BuildPath FileExists GetFileName
CopyFile FolderExists GetFolder
CopyFolder GetAbsolutePathName GetParentFolderName
CreateFolder GetBaseName GetSpecialFolderd
CreateTextFile GetDrive GetTempName
DeleteFile GetDriveName MoveFile
DeleteFolder GetExtensionName MoveFolder
DriveExists GetFile OpenTextFile

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.