Demonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the document as C:\Scripts\Word\Testdoc.doc. 複製代碼 代碼如下:Set objWord = CreateObject("Word.Application")
Description Demonstration script that reads the values stored in a spreadsheet named C:\Scripts\New_users.xls. Script Code複製代碼 代碼如下:Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open _
Demonstration script that displays formatted data in a Microsoft Word document. 複製代碼 代碼如下:Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc = objWord.Documents.Add() Set objSelection = objWord.Selection
Demonstration script that retrieves service information from a computer and then displays that information in tabular format in Microsoft Word.複製代碼 代碼如下:Set objWord = CreateObject("Word.Application") objWord.Visible = True Set objDoc =
DescriptionReturns information about the Internet proxy server used by a computer. Supported PlatformsWindows Server 2003YesWindows XPYesWindows 2000NoWindows NT 4.0NoWindows 98NoScript Codevar wbemFlagReturnImmediately = 0x10;var
這是一個未知大小的圖片在一個已知大小容器中的水平和垂直置中的例子,原文標題:“Centering an image of unknown size in an outer container of known size”。 這個水平和垂直置中的例子能正常工作在IE5.x, IE6, IE7, Firefox, Opera, Mozilla, Netscape,為IE和非IE分別寫了二套簡單的樣式。 IE使用inline-blocks,非IE使用table-cell and vertical-
Returns a list of all the hot fixes installed on a computer. Script Code 複製代碼 代碼如下:var wbemFlagReturnImmediately = 0x10; var wbemFlagForwardOnly = 0x20; var objWMIService = GetObject("winmgmts:\\\\.\\root\\CIMV2"); var colItems =
在寫了《Worm.Win32.VB.fw分析與清除方案》後,也沒想到要寫什麼專殺,不過這些天好多同學都說中了這隻病毒,我要是一個一個去解決,非忙死我不可!感染範圍挺大的!我之前寫了一篇《VBS編程打造自己的病毒專殺工具》 ,VBS相對來說熟悉點,所以這次就用VBS來寫個專殺吧……下面代碼不懂的,請參考那篇介紹如何寫自己的病毒專殺的文章吧。複製代碼 代碼如下:on error resume next set w=getobject("winmgmts:") set
Prototype.js作為javascript的成功的開源架構,封裝了很多好用的功能,雖然官方沒提供什麼文檔,不過在google上一搜,好多相關的文檔,不過在學習使用的過程中還是碰到了一些問題,希望熟悉的朋友能多加指點,對於prototype.js學習我關注這麼幾點,同時針對每點也講講學習的結果和碰到的問題,^_^ 1、類的建立 prototype.js已經封裝好了,這個很簡單。 var Person=Class.create();
Description Returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a Windows Installer application. Script Code 複製代碼 代碼如下:var wbemFlagReturnImmediately = 0x10; var wbemFlagForwardOnly =
一、運行Autorun.bat進行盤符免疫(包括隨身碟) 二、運行de-Autorun.bat解除盤符免疫(包括隨身碟) 三、Autorun.bat與de-Autorun.bat兩個檔案的第四行代碼中的in (c d e f g h i j)表示盤符, 可以根據自己電腦盤符情況添加與刪減。 歡迎到我的部落格:http://hi.baidu.com/ycosxhack。 By 餘弦函數複製代碼 代碼如下:@echo off echo autorun免疫…… pause for %%a in (c