Storages & Files Drives
Drives collection

Returns a collection of SFDrive objects - one for each drive on the system.


Set drvs = object.Drives


Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set drvs = sf.Drives
For Each drv In drvs
  Response.Write drv.DriveLetter & " - " & drv.FreeSpace & " bytes" & "<BR>"


The collection is implemented using VarDictionary object. You can use any useful feature of  VarDictionary object to enumerate and manage the returned collection.

Only the drives with assigned letters are returned. In the later Windows versions (Windows 2000,XP,.NET) there is more advanced mapping system (volumes can be mounted on directory for example), but this component is intended to run in OS version independent way.

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 [ ]