wrote :: 2005.01.18
Sub test1()
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
With FSO.GetFolder("C:\")
MsgBox .Files.Count & "個のファイルがあります", vbInformation
End With
Set FSO = Nothing
End Sub
Sub test2()
With CreateObject("Scripting.FileSystemObject")
If .DriveExists("E") Then
MsgBox "Eドライブが存在します", vbInformation
Else
MsgBox "Eドライブは存在しません", vbExclamation
End If
End With
End Sub