最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用ASP列出服务器上的所有硬盘及类型
时间:2022-06-30 10:03:43 编辑:袖梨 来源:一聚教程网
列出服务器的的所有磁盘.
<%
function Tran(drv)
select case drv
case 0:Tran="设备无法识别"
case 1:Tran="软盘驱动器"
case 2:Tran="硬盘驱动器"
case 3:Tran="网络硬盘驱动器"
case 4:Tran="光盘驱动器"
case 5:Tran="RAM虚拟驱动器"
end select
end function
Set fs=Server.CreateObject("Scripting.FileSystemObject")
response.write "
"
%>
<%
function Tran(drv)
select case drv
case 0:Tran="设备无法识别"
case 1:Tran="软盘驱动器"
case 2:Tran="硬盘驱动器"
case 3:Tran="网络硬盘驱动器"
case 4:Tran="光盘驱动器"
case 5:Tran="RAM虚拟驱动器"
end select
end function
Set fs=Server.CreateObject("Scripting.FileSystemObject")
response.write "
盘符 | 驱动器类型 |
" & d.DriveLetter & " | " & Tran(d.DriveType) & " |
%>
相关文章
- 《弓箭传说2》新手玩法介绍 01-16
- 《地下城与勇士:起源》断桥烟雨多买多送活动内容一览 01-16
- 《差不多高手》醉拳龙技能特点分享 01-16
- 《鬼谷八荒》毕方尾羽解除限制道具推荐 01-16
- 《地下城与勇士:起源》阿拉德首次迎新春活动内容一览 01-16
- 《差不多高手》情圣技能特点分享 01-16