A.8. FileSystem Objects (VB6 only)

A.8.1. FileSystemObject Object

BuildPath Function

Returns a string containing the full path

CopyFile Method

Copies a file

CopyFolder Method

Copies a folder and its contents

CreateFolder Function

Returns a Folder object for the newly created folder

CreateTextFile Function

Returns a TextStream object for the newly created text file

DeleteFile Method

Removes a file from disk

DeleteFolder Method

Removes the folder and its contents from disk

DriveExists Function

Returns True if the specified drive is found

Drives Property

Returns a Drives object

FileExists Function

Returns True if the specified file is found

FolderExists Function

Returns True if the specified folder is found

GetAbsolutePathName Function

Returns the canonical representation of the path

GetBaseName Function

Returns the base name from a path

GetDrive Function

Returns a Drive object for the specified drive

GetDriveName Function

Returns a string representing the name of a drive

GetExtensionName Function

Returns a string containing the extension from a given path

GetFile Function

Returns a File object

GetFileName Function

Returns a string containing the name of a file from a given path

GetFolder Function

Returns a Folder object

GetParentFolderName Function

Returns the name of the folder immediately above the folder in a given path

GetSpecialFolder Function

Returns a folder object representing one of the special Windows folders

GetTempName Function ...

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.