分类分类
关注+2004-10-07作者:蓝点
列出服务器的的所有磁盘.
<%
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 ""
for each d in fs.drives
response.write ""
next
set fs=nothing
response.write "
盘符 | 驱动器类型 |
" & d.DriveLetter & " | " & Tran(d.DriveType) & " |
相关文章
更多+相同厂商
热门推荐
点击查看更多
点击查看更多
点击查看更多
说两句网友评论