Batch processing application-mcafee manual Antivirus script _dos/bat

Source: Internet
Author: User
Tags goto virus scan
This script uses McAfee's supperdat to perform a virus killing on the computer. Use FlashGet to check supperdat updates, reference: http://blog.csdn.net/scz123/archive/2006/11/02/1362573.aspx

20061215: Modify Scan.exe Run parameters, add/program (Scan malware),/norename (do not change file name).
McAfee Command Line reference manual: Http://scz123.googlepages.com/Mcafee5100wpg.pdf

1. Scripts run using local McAfee Superdat
2, using the shared McAfee Superdat on the LAN to run the script






--------------------------------------------------------------------------------
1. Scripts run using local McAfee Superdat

--------------------------------------------------------------------------------
@echo off
echo McAfee Manual Antivirus Script
Echo Created by Scz 20061101
Echo =================================================
Echo recommends running this script in an administrator environment to successfully kill the virus
Echo =================================================


REM This script runs in need of McAfee's Supperdat, download address: HTTP://WWW.MCAFEE.COM/APPS/DOWNLOADS/SECURITY_UPDATES/SUPERDAT.ASP?REGION=CN &segment=enterprise
REM Supperdat after downloading, please rename to Mcafee*.exe (* for any character)

If not exist Mcafee*.exe (the Echo virus code does not exist, you cannot 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 scan ...

echo @echo off >c:\mcafee\ Antivirus. bat
Echo Echo. >>c:\mcafee\ Anti-Virus. bat
Echo Echo ============================================ >>c:\mcafee\ Antivirus. bat
echo echo McAfee manual Antivirus script that automatically opens the report when the scan is finished >>c:\mcafee\ antivirus. bat
Echo Echo created by Scz 20061031 >>c:\mcafee\ Antivirus. bat
Echo Echo ============================================ >>c:\mcafee\ Antivirus. bat
Echo Set filename=%%date:-=%%.%%time::=%%.html >>c:\mcafee\ Antivirus. bat
echo cd/d c:\mcafee >>c:\mcafee\ Antivirus. bat
Echo REM retains 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\ Antivirus. bat
echo scan/adl/analyze/program/clean/norename/timeout 15/winmem/html "%%filename%%" >>c:\mcafee\ Antivirus. bat
echo Echo Virus scan complete, press any key to open report ... >>c:\mcafee\ antivirus. bat
echo if exist "%%filename%%" "Start" "%%filename%%" >>c:\mcafee\ Antivirus. bat

CD/D C:\mcafee
Start "McAfee VirusScan" cmd/c anti-virus. bat
Goto END

: Error
Pause >nul
: End






--------------------------------------------------------------------------------
2, using the shared McAfee Superdat on the LAN to run the script
--------------------------------------------------------------------------------
@echo off
echo McAfee Manual Antivirus Script
Echo Created by Scz 20061101
Echo =================================================
Echo recommends running this script in an administrator environment to successfully kill the virus
Echo =================================================


REM This script runs in need of McAfee's Supperdat, download address: HTTP://WWW.MCAFEE.COM/APPS/DOWNLOADS/SECURITY_UPDATES/SUPERDAT.ASP?REGION=CN &segment=enterprise
REM Supperdat after downloading, please rename to Mcafee*.exe (* for any character)


Echo is connecting to the 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 next action, press any key to exit ... &goto error)

CD/D x:\
If not exist Mcafee*.exe (the Echo virus code does not exist, you cannot perform 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 scan ...

echo @echo off >c:\mcafee\ Antivirus. bat
Echo Echo. >>c:\mcafee\ Anti-Virus. bat
Echo Echo ============================================ >>c:\mcafee\ Antivirus. bat
echo echo McAfee manual Antivirus script that automatically opens the report when the scan is finished >>c:\mcafee\ antivirus. bat
Echo Echo created by Scz 20061031 >>c:\mcafee\ Antivirus. bat
Echo Echo ============================================ >>c:\mcafee\ Antivirus. bat
Echo Set filename=%%date:-=%%.%%time::=%%.html >>c:\mcafee\ Antivirus. bat
echo cd/d c:\mcafee >>c:\mcafee\ Antivirus. bat
Echo REM retains 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\ Antivirus. bat
echo scan/adl/analyze/clean/timeout 15/winmem/html "%%filename%%" >>c:\mcafee\ Antivirus. bat
echo Echo Virus scan complete, press any key to open report ... >>c:\mcafee\ antivirus. bat
rem echo Pause ^>nul >>c:\mcafee\ Antivirus. bat
echo if exist "%%filename%%" "Start" "%%filename%%" >>c:\mcafee\ Antivirus. bat

CD/D C:\mcafee
Start "McAfee VirusScan" cmd/c anti-virus. bat
Goto END

: Error
Pause >nul
: End

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.