IsRootFolder Property |
Description
Returns VARIANT_TRUE if the specified folder is the root folder; VARIANT_FALSE if it is not.
PowerBASIC Syntax
Return Value
Boolean. True or False.
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM fso AS IFileSystem DIM pFolder AS IFolder DIM iRootFolder AS INTEGER
' Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" ' Get a reference to the IFolder interface pFolder = fso.GetFolder(UCODE$("C:\MyFolder")) ' Is root folder? iRootFolder = pFolder.IsRootFolder
|