GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — MDTDeployApplications/Update-Dat.wsf at master · PowerShellCrack/MDTDeployApplications Expand file tree/ Copy pathUpdate-Dat.wsfMore file actions 111 lines (88 loc) · 3.19 KB / Copy pathUpdate-Dat.wsfFile metadata and controls111 lines (88 loc) · 3.19 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 <job id="Update-Dat"> <script language="VBScript" src="..\..\scripts\ZTIUtility.vbs"/> <script language="VBScript"> ' //---------------------------------------------------------------------------- ' // ' // Solution: Richard's Deployment Script ' // File: Update-Dat.wsf ' // ' // Purpose: This will update McAfee Virusscan Enterprise Dat Definitions ' // ' // Author: Richard Tracy ' // ' // Usage: cscript Update-Dat.wsf [/debug:true] ' // ' //---------------------------------------------------------------------------- '//---------------------------------------------------------------------------- '// Global constant and variable declarations '//---------------------------------------------------------------------------- Option Explicit Dim iRetVal '//---------------------------------------------------------------------------- '// Main routine '//---------------------------------------------------------------------------- 'On Error Resume Next iRetVal = ZTIProcess ProcessResults iRetVal On Error Goto 0 '//--------------------------------------------------------------------------- '// Function: ZTIProcess() '//--------------------------------------------------------------------------- Function ZTIProcess() Dim sInstallName Dim sDatPath Dim InstallFiles() Dim i, stemp '// Variables sInstallName = "McAfee VirusScan Dat Definitions" sDatPath = oUtility.ScriptDir & "\dat" '// Start the process oLogging.CreateEntry "Starting " & sInstallName & " installation", LogTypeInfo '// Disable Zone Checks oEnv("SEE_MASK_NOZONECHECKS") = 1 iRetVal = GetPatchFileList (sDatPath,InstallFiles) if iRetVal => 1 then For i = 1 to iRetVal iRetVal = oUtility.RunWithHeartbeat("""" & sDatPath & "\" & InstallFiles(i) & """ /SILENT /LOGFILE %windir%\temp\mcafee_dat.log") Next Else oLogging.CreateEntry "There are no definitions files found", LogTypeInfo End If '// Enable Zone Checks oEnv.Remove("SEE_MASK_NOZONECHECKS") End Function Function GetPatchFileList(FileFolder, FileStringArray()) Dim objFS, objFolder, objFile Dim numPatches 'create file system object Set objFS=CreateObject("Scripting.FileSystemObject") 'set the a variable to point to our folder with the patches in it. Set objFolder=objFS.GetFolder(FileFolder) 'set the initial file count to 0 numPatches=0 for each objFile in objFolder.Files if UCase(Right(objFile.Name,4))=".EXE" then numPatches=numPatches+1 redim preserve FileStringArray(numPatches) FileStringArray(numPatches)=objFile.Name end if next GetPatchFileList=numPatches End Function Function CopyFile(sName,sDestPath) If oFSO.fileexists(oUtility.ScriptDir & "\" & sName) Then If Not oFSO.FolderExists(sDestPath) Then oLogging.CreateEntry "Created Directory: " & sDestPath, LogTypeInfo oFSO.CreateFolder sDestPath End If oLogging.CreateEntry "Preparing to copy " & oUtility.ScriptDir & "\" & sName, LogTypeInfo oFSO.CopyFile oUtility.ScriptDir & "\" & sName, sDestPath, True oLogging.CreateEntry "The file " & sName & " was copied to " & sDestPath, LogTypeInfo CopyFile=0 Else oLogging.CreateEntry "Failed to find : " & oUtility.ScriptDir & "\" & sName, LogTypeERROR CopyFile=2 End If End Function </script> </job> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |