RootFolder Property




Returns a value indicating the type of a specified drive.


PowerBASIC Syntax


PROPERTY GET RootFolder () AS IFolder


Return Value


IDispatch. Reference to a IFolder interface.


Example [PowerBASIC]





DIM fso AS IFileSystem

DIM pDrive AS IDrive

DIM pFolder AS IFolder


' Create an instance of the FileSystemObject

fso = NEWCOM "Scripting.FileSystemObject"

' Get a reference to the IDrive interface

pDrive = fso.GetDrive((UCODE$("C:\MyFolder\"))

' Get a reference to the IFolder interface

pFolder = pDrive.RootFolder


Valid XHTML 1.0 Transitional