?? driver.asp
字號(hào):
<Html>
<head>
<title>
磁盤驅(qū)動(dòng)器瀏覽器
</title>
</head>
<body>
<%
Function Tran(Driver)
Select Case Driver
Case 0: Tran="設(shè)備無(wú)法識(shí)別"
Case 1: Tran="軟盤驅(qū)動(dòng)器"
Case 2: Tran="硬盤驅(qū)動(dòng)器"
Case 3: Tran="網(wǎng)絡(luò)硬盤驅(qū)動(dòng)器"
Case 4: Tran="光盤驅(qū)動(dòng)器"
Case 5: Tran="RAM虛擬磁盤"
End Select
End Function
set fs=Server.CreateObject("Scripting.FileSystemObject")
%>
<table border=1 width="80%">
<tr>
<td>盤符</td>
<td>類型</td>
<td>卷標(biāo)</td>
<td>總計(jì)大小</td>
<td>可用空間</td>
<td>文件系統(tǒng)</td>
</tr>
<%
on error resume next
For each Drive in fs.Drives
Response.Write "<Tr>"
Response.Write "<Td>" & Drive.DriveLetter & " </td>"
Response.write "<Td> " & Tran(Drive.DriveType) & " </td>"
Response.write "<Td> " & Drive.VolumeName & " </td>"
Response.write "<Td> " & cstr(Drive.TotalSize) & " </td>"
Response.write "<Td> " & cstr(Drive.Availablespace) & " </td>"
Response.write "<Td> " & (Drive.FileSystem) & " </td>"
Response.Write "</Tr>"
Next
set fs=nothing
%>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -