欢迎光临
我们一直在努力

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

建站超值云服务器,限时71元/月

<%
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
%>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 一个ASP获取服务器驱动器类型的例子—[摘自ASP实务经典]
分享到: 更多 (0)