Data Type: FileSystemObject object
A FileSystemObject object.
Data Type: String
A path specifier.
Returns the drive name of a given path.
If the drive name can’t be determined from the given path, a zero-length string (” “) is returned.
For local and mapped drives, GetDriveName appears to look for the colon as a part of the drive’s name to determine whether a drive name is present. For network drives, it appears to look for the computer name and drive name.
GetDriveName is really a string-parsing method rather than
a filesystem method. In particular, it does not verify that the
drive name that it extracts from
actually exists on the system.
Path can be a network drive or