主頁(yè) > 知識(shí)庫(kù) > hta(vbs)列目錄樹代碼

hta(vbs)列目錄樹代碼

熱門標(biāo)簽:不錯(cuò)的400電話辦理 電話機(jī)器人適用業(yè)務(wù) 獲客智能電銷機(jī)器人 湛江電銷防封卡 哈爾濱外呼系統(tǒng)代理商 南昌辦理400電話怎么安裝 徐州天音防封電銷卡 鄭州智能外呼系統(tǒng)運(yùn)營(yíng)商 佛山防封外呼系統(tǒng)收費(fèi)

復(fù)制代碼 代碼如下:

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>

標(biāo)簽:安康 懷化 紹興 蕪湖 吉安 蘭州 呂梁 廣西

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《hta(vbs)列目錄樹代碼》,本文關(guān)鍵詞  hta,vbs,列,目錄樹,代碼,hta,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《hta(vbs)列目錄樹代碼》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于hta(vbs)列目錄樹代碼的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章