Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement manual antivirus script for Mcafee in batch processing

Shulou Source: shulou.com Published: 2022-06-03 08:18:39 09月30日 Update

This article mainly shows you "how to realize McAfee manual antivirus script in batch processing". The content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "how to realize McAfee manual antivirus script in batch processing".

This script uses McAfee's SupperDat to kill viruses on your computer. Use FLASHGET to check SupperDat updates, ref: blog.csdn.net/scz123/archive/2006/11/02/1362573.aspx

20061215: Modify scan.exe run parameters to add/PROGRAM (scan for malware),/NORENAME (do not change file name).

MCAFEE Command Line Reference Manual: scz123.googlepages.com/Mcafee5100wpg.pdf

--------------------------------------------------------------------------------

1. Run scripts using local MCAFEE SUPERDAT

--------------------------------------------------------------------------------

@echo off

echo McAfee Manual Antivirus Script

echo created by scz 20061101

echo =================================================

echo It is recommended that you run this script in an administrator environment in order to successfully kill the virus

echo =================================================

rem This script requires McAfee SupperDat to run, download at www.mcafee.com/apps/downloads/security_updates/superdat.asp? region=cn&segment=enterprise

rem SupperDat After download, please rename to McAfee*.exe(* is any character)

if not exist mcafee*.exe (echo virus code does not exist, unable to perform the next step, press any key to exit... &goto error)

echo is releasing virus code...

for /f "skip=1" %%i in ('dir mcafee*.exe /o-d /b 2^>nul') do (del %%i)

for /f %%i in ('dir mcafee*.exe /b /o-d') do (%%i /e c:\Mcafee & goto start)

:start

echo Start scanning...

echo @echo off >c:\mcafee\antivirus.bat

echo echo. >>c:\mcafee\antivirus.bat

============================================

echo echo McAfee manual antivirus script, automatically opens report after scanning>>c:\mcafee\antivirus.bat

echo echo created by scz 20061031 >>c:\mcafee\toxicide.bat

============================================

echo set filename=%%date:-=%%.%% time::=%%.html >>c:\mcafee\antivirus.bat

echo cd /d c:\mcafee >>c:\mcafee\toxicide.bat

echo REM Keep the last 10 reports>>c:\mcafee\antivirus.bat

echo for /f "skip=10" %%%%i in ('dir *.html /o-d /b 2^^>nul') do (del %%%i) >>c:\mcafee\detoxification.bat

echo scan /ADL /ANALYZE /PROGRAM /CLEAN /NORENAME /TIMEOUT 15 /WINMEM /HTML "%%filename%%" >>c:\mcafee\toxicide.bat

echo echo Virus scanning completed, press any key to open the report... >>c:\mcafee\antivirus.bat

echo if exist "%%filename%%" start " "%filename%%" >>c:\mcafee\toxicide.bat

cd /d c:\mcafee

start "McAfee VirusScan" cmd /c Antivirus.bat

goto end

:error

pause >nul

:end

--------------------------------------------------------------------------------

2. Scripts run using MCAFEE SUPERDAT shared on the local area network

--------------------------------------------------------------------------------

@echo off

echo McAfee Manual Antivirus Script

echo created by scz 20061101

echo =================================================

echo It is recommended that you run this script in an administrator environment in order to successfully kill the virus

echo =================================================

rem This script requires McAfee SupperDat to run, download at www.mcafee.com/apps/downloads/security_updates/superdat.asp? region=cn&segment=enterprise

rem SupperDat After download, please rename to McAfee*.exe(* is any character)

echo Connecting to remote computer (scz)...

net use \\10.1.103.10 /user:scz\sczscz sczscz >nul 2>&1

net use x: /del /y >nul 2>&1

net use x: \\10.1.103.10\update >nul 2>&1 ||(echo network exception, unable to perform the next operation, press any key to exit...) &goto error)

cd /d x:\

if not exist mcafee*.exe (echo virus code does not exist, unable to execute the next step, press any key to exit... &goto error)

echo is releasing virus code...

for /f %%i in ('dir mcafee*.exe /b /o-d 2^>nul') do (%%i /e c:\Mcafee & goto start)

:start

net use x: /del /y >nul 2>&1

net use \\10.1.103.10 /del /y >nul 2>&1

echo Start scanning...

echo @echo off >c:\mcafee\antivirus.bat

echo echo. >>c:\mcafee\antivirus.bat

============================================

echo echo McAfee manual antivirus script, automatically opens report after scanning>>c:\mcafee\antivirus.bat

echo echo created by scz 20061031 >>c:\mcafee\toxicide.bat

============================================

echo set filename=%%date:-=%%.%% time::=%%.html >>c:\mcafee\antivirus.bat

echo cd /d c:\mcafee >>c:\mcafee\toxicide.bat

echo REM Keep the last 10 reports>>c:\mcafee\antivirus.bat

echo for /f "skip=10" %%%%i in ('dir *.html /o-d /b 2^^>nul') do (del %%%i) >>c:\mcafee\detoxification.bat

echo scan /ADL /ANALYZE /CLEAN /TIMEOUT 15 /WINMEM /HTML "%%filename%%" >>c:\mcafee\toxicide.bat

echo echo Virus scanning completed, press any key to open the report... >>c:\mcafee\antivirus.bat

rem echo pause ^>nul >>c:\mcafee\antivirus.bat

echo if exist "%%filename%%" start " "%filename%%" >>c:\mcafee\toxicide.bat

cd /d c:\mcafee

start "McAfee VirusScan" cmd /c Antivirus.bat

goto end

:error

pause >nul

:end

The above is "batch processing how to implement McAfee manual antivirus script" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Scripts viruses manual runs reports content articles success addresses characters suggestions environment administrators references learning help management parameters commands Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia Docker Shulou Tech Info Huawei