午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    hta查看磁盤空間的腳本
    來源:易賢網(wǎng) 閱讀:816 次 日期:2016-06-17 09:42:40
    溫馨提示:易賢網(wǎng)小編為您整理了“hta查看磁盤空間的腳本”,方便廣大網(wǎng)友查閱!

    <html>

    <head>

    <title>磁盤空間查看腳本</title>

    <hta:application

         applicationname=磁盤空間查看腳     

         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>磁盤空間查看腳本</b></font><br>

         <font size=2>顯示各磁盤分區(qū)使用情況(<font color=#ff0000>/mb</font>)</font></font></table>

    <body bgcolor=#99ccff>

         <span id = dataarea></span>

    </body>

    </html> 

    保存為hta文件.

    更多信息請查看腳本欄目
    易賢網(wǎng)手機網(wǎng)站地址:hta查看磁盤空間的腳本

    2025國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)