校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁(yè) > 知識(shí)庫(kù) > hta查看磁盤(pán)空間的腳本

hta查看磁盤(pán)空間的腳本

熱門(mén)標(biāo)簽:綿陽(yáng)外呼線(xiàn)路 軟通動(dòng)力地圖標(biāo)注專(zhuān)員 汕頭外呼crm系統(tǒng) DOTA地圖標(biāo)注app 湖州手機(jī)外呼系統(tǒng) 徐州客服外呼系統(tǒng)排名 五華銷(xiāo)售外呼管理系統(tǒng)電話(huà) 聯(lián)通400電話(huà)去哪里申請(qǐng)啊 百度地圖標(biāo)注地址有什么影響
html>
head>
title>磁盤(pán)空間查看腳本/title>
hta:application
     applicationname="磁盤(pán)空間查看腳"     
     border="dialog"
     borderstyle="normal"
     caption="yes"
     contextmenu="no"
     maximizebutton="no"
     minimizebutton="yes"
     navigable="no"
     scroll="yes"
     selection="no"
     showintaskbar="yes"
     singleinstance="yes"
     sysmenu="yes"
     version="1.0"
     windowstate="normal"
>


script language="vbscript">
!-- Insert code, subroutines, and functions here -->
window.resizeTo 500, 420
     ileft=(window.screen.width-500)/2
     itop=(window.screen.height-420)/2         
     window.moveTo ileft,itop                             

Sub Window_onLoad 
     GetDiskSpace 
End Sub


Sub GetDiskSpace
Const HARD_DISK = 3
Const Size = 1048576


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
      "{impersonationLevel=impersonate}!\\"  strComputer  "\root\cimv2")
Set colDisks = objWMIService.ExecQuery _
     ("Select * from Win32_LogicalDisk Where DriveType = "  HARD_DISK  "")
     strHTML = "table align=center width=95% borderColor=#698cc2 border='1' cellSpacing='0' cellpadding='1'>"         
                     strHTML = strHTML  "tr>"
             strHTML = strHTML  "td width=110px align=center>font size=2>b>"  "分區(qū)"  "/b>/td>"
             strHTML = strHTML  "td width=110px align=center>font size=2>b>"  "容量"  "/b>/td>"
             strHTML = strHTML  "td width=110px align=center>font size=2>b>"  "已用"  "/b>/td>"
             strHTML = strHTML  "td width=110px align=center>font size=2>b>"  "未用"  "/b>/td>"
             strHTML = strHTML  "td width=110px align=center>font size=2>b>"  "空閑"  "/b>/td>"

     
For Each objDisk In colDisks     
intFreeSpace = objDisk.FreeSpace/Size
intTotalSpace = objDisk.Size/Size
pctFreeSpace = intFreeSpace/Size/ intTotalSpace/Size
infFuLin = intTotalSpace-intFreeSpace
DeviceID = objDisk.DeviceID
             strHTML = strHTML  "tr>"
             strHTML = strHTML  "td width=110px align=center>"  DeviceID  "/td>"
             strHTML = strHTML  "td width=110px align=right>"  FormatNumber(intTotalSpace,2,-1,-1,0)  "/td>"
             strHTML = strHTML  "td width=110px align=right>font color=#DB2C00>"  FormatNumber(infFuLin,2,-1,-1,0)  "/td>"
             strHTML = strHTML  "td width=110px align=right>font color=#008080>"  FormatNumber(intFreeSpace,2,-1,-1,0)  "/td>"
             strHTML = strHTML  "td width=110px align=right>"  FormatPercent(intFreeSpace/intTotalSpace)  "/td>"

Next
strHTML = strHTML  "/table>"
DataArea.InnerHTML = strHTML
End Sub


/script>
/head>


body>
!-- HTML goes here -->
table align=center width=95%>font color="#C63358">b>磁盤(pán)空間查看腳本/b>/font>br>
     font size="2">顯示各磁盤(pán)分區(qū)使用情況(font color="#FF0000">/MB/font>)/font>/font>/table>
body bgcolor="#99CCFF">
     span id = "DataArea">/span>
/body>
/html> 
保存為hta文件.

標(biāo)簽:清遠(yuǎn) 廣東 內(nèi)江 濟(jì)南 邯鄲 棗莊 新余 克拉瑪依

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《hta查看磁盤(pán)空間的腳本》,本文關(guān)鍵詞  hta,查看,磁盤(pán),空,間的,腳本,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《hta查看磁盤(pán)空間的腳本》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于hta查看磁盤(pán)空間的腳本的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 淮北市| 酒泉市| 惠东县| 盐津县| 兖州市| 富民县| 广丰县| 仙游县| 班戈县| 福建省| 庄河市| 谷城县| 宜宾县| 白玉县| 绥化市| 临颍县| 大同县| 读书| 丹寨县| 七台河市| 唐海县| 建宁县| 苍梧县| 房产| 肇东市| 南康市| 汽车| 长丰县| 商城县| 锦屏县| 化州市| 南充市| 伊川县| 邵武市| 乌审旗| 衡东县| 永吉县| 浦城县| 旬阳县| 张家港市| 永顺县|