• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    hta(vbs)列目录树代码

    复制代码 代码如下:

    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作品笨狼CSDN爬虫
    下一篇:适用于hta的Sleep函数
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    hta(vbs)列目录树代码 hta,vbs,列,目录树,代码,hta,