This method can be used to identify the type of drive a path refers to.
IDL Definition
HRESULT GetDriveInformation(
[in] BSTR bstrPath,
[out, retval] DWORD *pdwdt
);
Parameters
bstrPath
the path to interrogate information about.
pdwdt
on return, the address of a DWORD variable containing information about the drive. The values are the same as the Win32 API GetDriveType function.
Return Values
a standard HRESULT value
Example
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set DSConfig = ObjCreator.CreateObjAuth("MemAdmin.DSConfig.1")
DriveType = DSConfig.GetDriveInformation("f:\somedir")