主页 > 知识库 > hta(vbs)列目录树代码

hta(vbs)列目录树代码

热门标签:不错的400电话办理 电话机器人适用业务 获客智能电销机器人 湛江电销防封卡 哈尔滨外呼系统代理商 南昌办理400电话怎么安装 徐州天音防封电销卡 郑州智能外呼系统运营商 佛山防封外呼系统收费

复制代码 代码如下:

html>
head>
title>磁盘管理器/title>
/head>
body>
div id="DivList">/div>
script language="vbscript">
Sub List(sPath)
sPath = Replace(sPath, "*", " ")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set c_drive = FSO.GetFolder(sPath)
Set c_files = c_drive.Files
Set c_folder = c_drive.SubFolders
sHTML = "table width='100%' border='1' cellspacing='0' cellpadding='0'>"
For Each a In c_files
sHTML = sHTML "tr>td>"
sBPath = a.Path
sHTML = sHTML a.Path
sHTML = sHTML "br />/td>/tr>"
Next
sHTML = sHTML "/table>"
Document.getElementById("DivList").innerHTML = sHTML
For Each b In c_folder
sHTML = sHTML "tr>td>"
sBPath = b.Path
sBPath = Replace(sBPath, " ", "*")
sBPath = Replace(sBPath, "\", "\\")
sHTML = sHTML "a href=# onclick=vbs:List(""" sBPath """)>" b.Path "/a>"
sHTML = sHTML "br />/td>/tr>"
Next
sHTML = sHTML "/table>"
Document.getElementById("DivList").innerHTML = sHTML
End Sub
strComputer = "."
Set wbemServices = Getobject("winmgmts:\\" strComputer)
Set wbemObjectSet=wbemServices.execquery("select name from Win32_PerfRawData_PerfDisk_LogicalDisk")
For Each mo In wbemObjectSet
if InstrRev(mo.name,":", -1, 0)>0 then
document.write "input type=button value="mo.name" onclick=list('"mo.name"\""')>"
end if
Next
/script>
/body>
/html>

标签:安康 怀化 绍兴 芜湖 吉安 兰州 吕梁 广西

巨人网络通讯声明:本文标题《hta(vbs)列目录树代码》,本文关键词  hta,vbs,列,目录树,代码,hta,;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 下面列出与本文章《hta(vbs)列目录树代码》相关的同类信息!
  • 本页收集关于hta(vbs)列目录树代码的相关信息资讯供网民参考!
  • 推荐文章