O'Reilly logo

VB & VBA in a Nutshell: The Language by Paul Lomax

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required