複製鏈接
請複製以下鏈接發送給好友

Drive

(計算機術語)

鎖定
Drive 在計算中的是描述對特定磁盤驅動器網絡共享的屬性提供訪問。
外文名
Drive
所屬學科
計算機
類    型
計算機術語
計算機術語
下面的代碼舉例説明了用 Drive 對象來訪問驅動器屬性:Sub ShowFreeSpace(drvPath) Dim fs, d, s Set fs = CreateObject("Scripting.FileSystemObject") Set d = fs.GetDrive(fs.GetDriveName(drvPath)) s = "Drive " & UCase(drvPath) & " - " s = s & d.VolumeName & vbCrLf s = s & "Free Space: " & FormatNumber(d.FreeSpace/1024, 0) s = s & " Kbytes" MsgBox sEnd Sub.