取得指定驅(qū)動器的驅(qū)動器類型
代碼:
<!DOCTYPE html><html>
<body>
<%
dim fs, d, n
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The drive type is: " & d.DriveType)
set d=nothing
set fs=nothing
%>
</body>
</html>
結(jié)果:
The drive type is: 2
相關(guān)文章
- ASP.NET Web Pages 類參考手冊
- ASP.NET MVC 模型
- ASP.NET CompareValidator 控件
- ASP.NET CheckBox 控件
- ASP.NET LinkButton 控件
- ASP.NET TableCell 控件
- HTML Image 2
- ASP.NET HTML 控件 Image
- ASP.NET HTML 控件 Label
- ASP.NET HTML 控件 Panel
- ASP.NET HTML 控件 用 重復(fù)
- ASP.NET HTML 控件 SortedList RadioButtonList 1
- C# 實(shí)例 Else If 條件
- C# 實(shí)例 Switch 條件
- ASP.NET CheckBox Checked 屬性
- ASP.NET CheckBoxList CellPadding 屬性
- ASP.NET Panel Direction 屬性
- htmltable 2
- 從表單獲取更多信息
- 略過文本文件的一部分