最新下载
热门教程
- 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) & " |
%>
相关文章
- 《桃花师》改名可行的方法有哪些 06-16
- SNORT币是骗局吗?2025币安交易所赚币攻略 06-16
- 如何交易5GASS币?2025OKX交易所高效攻略 06-16
- 《花亦山心之月》莹儿头像获得方法有哪些 06-16
- 最新2025币圈十大现货交易全球交易所TOP10-最安全虚拟币交易app币安推荐 06-16
- 《时光杂货店》人才推荐细节解读 06-16