Data Type: FileSystemObject object
A FileSystemObject object.
Data Type: String
A path to the required folder.
A Folder object.
Returns a reference to a Folder object.
FolderPath can be an absolute
or relative path.
FolderPath is a share name
or network path, GetFolder ensures that the drive or share
exists as part of the process of returning the Folder
If any part of
doesn’t exist, an error occurs.
You should first use GetAbsolutePathName to create the
FolderPath includes a
network drive or share, you could use the DriveExists method to
confirm the required drive is available prior to calling the
Since GetFolder requires that
FolderPath is the path to a valid
folder, you should call the FolderExists method to verify that
The GetFolder method allows you to directly obtain an object reference to a particular folder. You can also use the Item property of the Folders collection object for cases in which you must navigate the filesystem to reach a particular folder, or for those cases in which you’re interested in enumerating the subfolders belonging to a particular folder.
You must use the
statement to assign the Folder object reference to a local