主頁 > 知識(shí)庫 > ScriptomaticV2.hta學(xué)習(xí)腳本好工具

ScriptomaticV2.hta學(xué)習(xí)腳本好工具

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

html>

!--
'********************************************************************
'*
'*  File:          Scriptomatic.hta
'*  Author:        The Scripting Guys, Microsoft Corporation
'*  Created:       August 2002
'*  Modified:      July 2003 (1.0 -> 1.1 -> 2.0)
'*                 March 2004
'*  Version:       2.0
'*
'*  Description:   Scriptomatic is a WMI Scripting learning tool
'*                 that creates example WMI scripts -- in VBScript,
'*                 JScript, or Perl -- that retrieve instances of
'*                 WMI managed resources that are described by
'*                 dynamic classes in the WMI schema (also known as
'*                 the Common Information Model or CIM).
'*
'* Dependencies:   There are two (that we're aware of anyway):
'*                 1. You must run Scriptomatic on a WMI-enabled
'*                    computer. Any Windows operating system that has
'*                    the number 2000 or higher in its name, or XP,
'*                    is a safe bet.
'*                 2. And to successfully run the scripts generated
'*                    with Scriptomatic, well, you must be
'*                    administrator. After all, these are system
'*                    administration scripts. This piece of advice is
'*                    especially important if you take advantage of
'*                    the multiple computer feature that's new to
'*                    this version of the tool.
'*
'* Copyright (C) 2003 Microsoft Corporation
'*
'********************************************************************
-->

title>Scriptomatic Version 2.0 by The Microsoft Scripting Guys/title>

HTA:APPLICATION 
     ID="objScriptomatic" 
     APPLICATIONNAME="Scriptomatic"
     SCROLL="no"
     SINGLEINSTANCE="yes"
     WINDOWSTATE="normal"
>
head>

style>
BODY
{
   background-color: buttonface;
   font-family: Helvetica;
   font-size: 8pt;
   margin-top: 2px;
   margin-left: 8px;
   margin-right: 3px;
   margin-bottom: 3px;
}

.button
{
   font-family: Helvetica;
   font-size: 8pt;
   width: 40px;
}

.wmibutton
{
   font-family: Helvetica;
   font-size: 8pt;
   width: 70px;
}
.bigger_button
{
   font-family: Helvetica;
   font-size: 8pt;
   width: 80px;
}

textarea
{
   font-family: Arial;
   font-size: 8pt;
   margin-left: 3px;
   margin-right: 3px;
}

select
{
   font-family: Arial;
   font-size: 8pt;
   width: 450px;
   margin-left: 0px;
}
/style>

'********************************************************************
'* BEGIN_SCRIPT
'********************************************************************
script language="vbscript">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   /script>
'****************************************************************************
'* END_SCRIPT
'****************************************************************************

/head>

'****************************************************************************
'* Our HTML layout - the only thing of note here is that when each of the
'* buttons is pressed (clicked), their onClick attributes causes the
'* appropriate subroutine to be called
'****************************************************************************

body>

table WIDTH="700" BORDER=1>

   !--------------->
   !-- first row -->
   !--------------->
   tr>
      td VALIGN=TOP WIDTH=700 COLSPAN=2>
         table BORDER=0>
         tr>
            td WIDTH=300 VALIGN=TOP>div style="font-size:8pt;">WMI Namespace/div>span id="wmi_namespaces">/span>/td>
            td WIDTH=400 VALIGN=TOP>div style="font-size:8pt;">WMI Class    /div>span id="wmi_classes">/span>/td>
         /tr>
         /table>
      /td>
   /tr>
   !---------------->
   !-- second row -->
   !---------------->
   tr>
      td VALIGN=TOP WIDTH=700 COLSPAN=2>
         table BORDER=0>
            tr>
               td>input id=runbutton  class="button" type="button" value="Run"  name="run_button"  onClick="RunScript()">/td>
               td>input id=cimv2button  class="button" type="button" value="CIMv2"  name="cimv2_button"  onClick="SetNamespaceToCIMV2()">/td>
               td>input id=wmisourcebutton class="wmibutton" type="button" value="WMI Source" name="wmisource_button" onClick="SetWMIRepository()" title="Change computer used for WMI namespace and class information">/td>
               td>input id=openbutton class="button" type="button" value="Open" name="open_button" onClick="OpenScript()">/td>
               td>input id=savebutton class="button" type="button" value="Save" name="save_button" onClick="SaveScript()">/td>         
               td>input id=quitbutton class="button" type="button" value="Quit" name="quit_button" onClick="QuitScript()">/td>
            /tr>
         /table>
      /td>
   /tr>
   !--------------->
   !-- third row -->
   !--------------->
   tr>
      td WIDTH=600>
         div ID=code_header>/div>
         div id="code" name="code">/div>
      /td>
      td WIDTH=100 VALIGN=TOP>
         table>
         tr>th COLSPAN=2 style="font-size:8pt;">hr> Language hr>/th>/tr>
         tr>td>span style="font-size:8pt;">VBScript/span>/td>td>input type="radio" name="language" onClick="ComposeVBScriptCode" CHECKED>/td>tr>
         tr>td>span style="font-size:8pt;">Perl    /span>/td>td>input type="radio" name="language" onClick="ComposePerlCode">/td>/tr>
         tr>td>span style="font-size:8pt;">JScript /span>/td>td>input type="radio" name="language" onClick="ComposeJScriptCode">/td>/tr>
         tr>td>span style="font-size:8pt;">Python  /span>/td>td>input type="radio" name="language" onClick="ComposePythonCode">/td>/tr>

         tr>th COLSPAN=2 style="font-size:8pt;">hr> Output Format hr>/th>/tr>
         tr>td>span style="font-size:8pt;">Command Prompt/span>/td>td>input type="radio" name="output" onClick="SetOutputFormat('CmdLine')" CHECKED>/td>tr>
         tr>td>span style="font-size:8pt;">Plain Text    /span>/td>td>input type="radio" name="output" onClick="SetOutputFormat('PlainText')">/td>/tr>
         tr>td>span style="font-size:8pt;">HTML          /span>/td>td>input type="radio" name="output" onClick="SetOutputFormat('HTML')">/td>/tr>
         tr>td>span style="font-size:8pt;">Excel         /span>/td>td>input type="radio" name="output" onClick="SetOutputFormat('Excel')">/td>/tr>
         tr>td>span style="font-size:8pt;">XML           /span>/td>td>input type="radio" name="output" onClick="SetOutputFormat('XML')">/td>/tr>
         /table>
      /td>
   /tr>
   !---------------->
   !-- fourth row -->
   !---------------->
   tr>
      td>
         div>
         div style="font-size:8pt;" TITLE="You can enter multiple computer names or IP addresses here. Separate them with commas...">Target Computers (comma-delimited):/div>
         textarea ID=target_computers COLS=120 ROWS=5>/textarea>
         /div>
      /td>
      td align="center">
         input class="bigger_button" TYPE=BUTTON VALUE="Update Script" TITLE="Modifies the Script to run against all Target Computers" onClick="ComposeCode()">
         input class="bigger_button" TYPE=BUTTON VALUE="Load From File" onClick="LoadComputerNamesFromFile()">
      /td>
   /tr>
/table>
/body>
/html>

使用說明:里面包含ScriptomaticV2.hta與hta_helpomatic.hta兩個(gè)文件。
Scriptomatic打包下載

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

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ScriptomaticV2.hta學(xué)習(xí)腳本好工具》,本文關(guān)鍵詞  ScriptomaticV2.hta,學(xué)習(xí),腳本,;如發(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)文章
  • 下面列出與本文章《ScriptomaticV2.hta學(xué)習(xí)腳本好工具》相關(guān)的同類信息!
  • 本頁收集關(guān)于ScriptomaticV2.hta學(xué)習(xí)腳本好工具的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章