最新下载
热门教程
- 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) & " |
%>
相关文章
- 《夜族崛起》铁匠西里尔位置一览 05-17
- 《寓言之地》1.02更新内容一览 05-17
- 《辐射4》steam好评率介绍 05-17
- 《夜族崛起》技能强化珠宝掉落说明 05-17
- 《辐射4》主机控制台介绍 05-17
- 《星露谷物语》海草和绿藻获取方法 05-17