VB FSO 获取C盘是否存在

来源:百度知道 编辑:UC知道 时间:2024/05/05 09:56:34

Private Sub Command1_Click()
If CreateObject("Scripting.FileSystemObject").DriveExists("c:") Then MsgBox "驱动器 C 存在"
End Sub

你又不看书,又不肯给分,真晕啊