说明对于可删除的驱动器,不需要将媒体插入其中,它就可以在Drives集合中显示出来。
下面的代码举例说明了如何获得 Drives 集合,以及如何用 For Each...Next 语句来访问该集合中的每个Drive:Sub ShowDriveList Dim fs, d, dc, s, n Set fs = CreateObject("Scripting.FileSystemObject") Set dc = fs.Drives For Each d in dc s = s & d.DriveLetter & " - " If d.DriveType = Remote Then n = d.ShareName Else n = d.VolumeName End If s = s & n & vbCrLf Next MsgBox sEnd Sub 内容来自网友回答
求英语作文!!6月20日,星期六去野餐,早上7点在校门口集合,7:15出发。一小时后到达
集合的含义