取得指定驱动器的驱动器类型
代码:
<!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>
结果:
The drive type is: 2
相关文章
- 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 控件 用 重复
- ASP.NET HTML 控件 SortedList RadioButtonList 1
- C# 实例 Else If 条件
- C# 实例 Switch 条件
- ASP.NET CheckBox Checked 属性
- ASP.NET CheckBoxList CellPadding 属性
- ASP.NET Panel Direction 属性
- htmltable 2
- 从表单获取更多信息
- 略过文本文件的一部分