« Line Input と TextStreamではどっちが速い? | Main | デスクトップへショートカットを作成する。 »

ドライヴ容量取得

'ドライヴ容量取得
Sub ShowDriveLetter(drvPath)
Dim fs, d, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set d = fs.GetDrive(fs.GetDriveName(drvPath))
s = "ドライブ " & d.DriveLetter & ": - "
s = s & d.VolumeName & vbCrLf
s = s & "空き容量: " & FormatNumber(d.FreeSpace / 1024, 0)
s = s & " KB"
MsgBox s
End Sub

|

« Line Input と TextStreamではどっちが速い? | Main | デスクトップへショートカットを作成する。 »

Comments

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/4099/22583

Listed below are links to weblogs that reference ドライヴ容量取得:

« Line Input と TextStreamではどっちが速い? | Main | デスクトップへショートカットを作成する。 »