VB6.0程序设计的步骤及例子,谢谢啦

2024-12-29 04:35:10
推荐回答(1个)
回答1:

例如,下面的脚本就是要返回安装在本地计算机上的磁盘集合然后返回它们的盘符:

1 Set objFSO = CreateObject("Scripting.FileSystemObject")

2 Set colDrives = objFSO.Drives

3 For Each objDrive in colDrives

4 Wscript.Echo "Drive letter: " & objDrive.DriveLetter

5 Next