Storages & Files DriveLetter
DriveLetter read-only property

Returns the drive letter for the logical disk represented by the SFDrive object.

Syntax:

variable = object.DriveLetter

Examples:

' ASP code
Dim main, drv
Set main = Server.CreateObject("newObjects.utilctls.SFMain")
For Each drv In main.Drives
  Response.Write "Drive " & drv.DriveLetter & drv.DriveType & "<BR>"
Next
' Lists all the logical drves on the machine

Remarks:

Only one character is returned, no trailing ":".

Applies to: SFDrive object

See also: SFMain

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