| Type 属性 |
|
object 应为 File 或 Folder 对象的名称。
Function ShowFolderType(filespec)
Dim fso, f, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(filespec)
s = UCase(f.Name) & " 的类型为 " & f.Type
End Function
ShowFolderType = s