Drives Property |
Description
Returns a Drives collection consisting of all Drive objects available on the local machine.
PowerBASIC Syntax
Return Value
IDispatch. Reference to a IDriveCollection interface.
Remarks
Removable-media drives need not have media inserted for them to appear in the Drives collection.
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM fso AS IFileSystem DIM pDrives AS IDriveCollection
' Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" ' Get a reference to the drives collection pDrives = fso.Drives(UCODE$("C:"))
|