echo off echo AVupdate.cmd rem H. Astheimer, UKE-Kinderonkologie, 19.09.2005 rem aufgerufen von VirusScanConsole/AutoUpdate nach erfolgreicher Mirror-Aktualisierung rem von NAIsite rem C:BatchAntivirusAVupdateGO!.cmd mit folgendem Inhalt rem c:BatchAntivirusAVupdate.cmd 1>c:BatchAntivirusAVupdate.txt 2>&1 rem Verzeichnis fuer Protokolle set LOG=%SystemDrive%atchAntivirus set AV2=%COMPUTERNAME% if not exist %LOG%
ul md %LOG% cd /d %LOG% echo. echo %date%, %time% echo Testen, ob eine neue SDAT angekommen ist ... if not exist \%AV2%Antivirussdat*.exe goto ERR1 dir /b \%AV2%Antivirussdat*.exe > AVneu.dat fc /l AVneu.dat AValt.dat >nul if %errorlevel% neq 0 ( echo Neue Version angekommen: type AVneu.dat FOR /F „eol= tokens=1 delims= „ %%A IN ("dir \%AV2%Antivirussdat*.exe") DO echo %%A >> AVdat.lst net send %AV2% NAI-update angekommen! 1>nul 2>nul rem SuperDat-Kommandozeilenoptionen rem /logfile filename, /silent, /reboot, /prompt /e extract, /v display info, /f force update echo SuperDAT-Datei ausfuehren... FOR /F %%A IN ("dir /b \%AV2%Antivirussdat*.exe") DO \%AV2%Antivirus\%%A /silent copy AVneu.dat AValt.dat >nul ) else ( echo Keine Aktualisierung gefunden! Jetzige Version: type AValt.dat ) goto ENDE :ERR1 echo keine SDAT gefunden!