home *** CD-ROM | disk | FTP | other *** search
- ' ***
- ' *** ------------------------------------------------------------------------------
- ' *** Filename: TrendMicroAntiVirus.vbs
- ' *** ------------------------------------------------------------------------------
- ' *** Description: TrendMicroAntiVirus Signature Update
- ' *** ------------------------------------------------------------------------------
- ' *** Version: 1.0
- ' *** Notes: Used by Windows Disk Protection
- ' *** ------------------------------------------------------------------------------
- ' *** Copyright (C) Microsoft Corporation 2005, All Rights Reserved
- ' *** ------------------------------------------------------------------------------
- ' ***
-
- ' ~~~
- ' ~~~ Force variables to be declared
- ' ~~~
- Option Explicit
-
- ' ~~~
- ' ~~~ Turn on error handling
- ' ~~~
- On Error Resume Next
-
- ' ~~~
- ' ~~~ Declare global variables
- ' ~~~
- Dim sTrendMicroPath, oShell, strComputer, oWMIService, ColProcesses
-
- ' ~~~ Create objects
- Set oShell = CreateObject("WScript.Shell")
-
- ' ~~~ Set application path
- sTrendMicroPath = oshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Application Path")
-
-
- '~~~ Download Virus Signature
- call oShell.Run(""""& sTrendMicroPath & "\ClnUpdNow.exe""", 0, True)
-
-
-