Extracts the drive name portion of the path passed to the method.
variable = object.GetDriveName(path)
path - full path specification
returned value - A string containing the drive name
portion from the path parameter. In case of mapped drive it will be
C:, D: etc. In case of network path it will be something like
\\server\share\. See remarks below.
The method never fails. Instead an empty string will be returned
if the path does not contain recognizable drive name portion.
The method currently supports mapped and windows networking paths
(\\server\share\...). As Windows OS evolves in future more
drive specifications can be added.
We recommend using this method to extract the drive name before
obtaining SFDrive object for the drive through the GetDrive
this method performs only textual analysis - there is no
guarantee that the returned value matches any existing drive on the
Applies to: SFMain
Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later