注册 | 登录 | 设为首页 | 加入收藏
您当前的位置:飞翔学院-IT中国 → 编程开发Asp → 文章内容

一个ASP获取服务器驱动器类型的例子---[摘自ASP实务经典]

作者:IT 来源:不详 发布时间:2007-9-2 0:41:34
<%
Set fs=CreateObject("Scripting.FileSystemObject")
For Each Drive In fs.Drives
    Response.Write "盘符:" & Drive.DriveLetter & "<br>"
    Response.Write "驱动器类型:" & Tran(Drive.DriveType) & "<br>"
Next
Set fs=Nothing

Function Tran(drvtype)
   Select Case drvtype
          Case 0:Tran="设备无法识别"
          Case 1:Tran="软盘驱动器"
          Case 2:Tran="硬盘驱动器"
          Case 3:Tran="网络硬盘驱动器"
          Case 4:Tran="光盘驱动器"
          Case 5:Tran="RAM虚拟磁盘"
   End Select
End Function
%>
http://www.itcnw.com/
  • 打印文档
  • 推荐好友
  • 返回顶部
  • 增大字体
  • 减少字体
关于本站 | 工作机会 | 合作网站 | 广告服务 | 市场合作| 联系我们 | 抽奖活动
版权所有: 武汉威俊科技有限公司 Copyright 2005-2007 www.ITCNW.COM All rights reserved