例如,下面的脚本就是要返回安装在本地计算机上的磁盘集合然后返回它们的盘符: 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