欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

VBS教程:屬性-DriveLetter 屬性

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

DriveLetter 屬性

返回本地驅(qū)動(dòng)器或網(wǎng)絡(luò)共享的驅(qū)動(dòng)器號(hào)。只讀。

object.DriveLetter

object 應(yīng)為 Drive 對(duì)象的名稱。

說明

如果指定的驅(qū)動(dòng)器沒有與驅(qū)動(dòng)器號(hào)相關(guān)聯(lián)(例如,一個(gè)網(wǎng)絡(luò)共享未映射驅(qū)動(dòng)器號(hào)),則 DriveLetter 屬性返回零長(zhǎng)度字符串 ("")。

以下代碼舉例說明如何使用 DriveLetter 屬性:

Function ShowDriveLetter(drvPath)  Dim fso, d, s  Set fso = CreateObject("Scripting.FileSystemObject")  Set d = fso.GetDrive(fso.GetDriveName(drvPath))  s = "Drive " & d.DriveLetter & ": - "   s = s & d.VolumeName & "<BR>"  s = s & "Free Space: " & FormatNumber(d.FreeSpace/1024, 0)   s = s & " Kbytes"  ShowDriveLetter = sEnd Function

相關(guān)文章

最新評(píng)論