Storages & Files GetDrive
GetDrive method 

Returns a SFDrive object for the drive specified.


Set drv = object.GetDrive(name)


name - The drive name or any path on that drive.


The SFDrive object is primarily designed for the mapped drives (the drives mapped to a letter) but it can be used with network paths as well. However the DriveLetter property of the returned object may not return correct values in that case. To extract correct drive names from any path string for mapped and non-mapped drives you should use the GetDriveName method and pass the returned result to the GetDrive method.

Applies to: SFMain object

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later


newObjects Copyright 2001-2006 newObjects [ ]