Batch Processing Application: McAfee manual antivirus script

Source: Internet
Author: User
Tags virus scan
This script uses McAfee's supperdat to scan and kill viruses on the computer. Use flashget to check for supperdat updates, refer to: http://blog.csdn.net/scz123/archive/2006/11/02/1362573.aspx

20061215: Modify the scan.exe running parameters and add/Program (SCAN malware) And/norename (without changing the file name ).
McAfee Command Line Reference Manual: http://scz123.googlepages.com/Mcafee5100wpg.pdf

1. Use the local McAfee superdat to run the script
2. Use the McAfee superdat shared on the LAN to run the script

 

 

1. Use the local McAfee superdat to run the script
@ Echo off
Echo McAfee manual antivirus script
Echo created by scz20061101
Echo ===================================================== ============
Echo recommends that you run this script in the administrator environment to successfully remove viruses.
Echo ===================================================== ============

 

Rem this script runs the supperdat that requires McAfee,: http://www.mcafee.com/apps/downloads/security_updates/superdat.asp? Region = cn & segment = Enterprise
After REM supperdat is downloaded, rename it McAfee *. EXE (* any character)

If not exist McAfee *. EXE (the ECHO virus code does not exist and you cannot perform the next step. Press any key to exit... & goto error)
ECHO is releasing the 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 starts scanning...

Echo @ echo off> C:/McAfee/antivirus. bat
Echo.> C:/McAfee/antivirus. bat
Echo ============================================== ======>> C: /McAfee/antivirus. bat
Echo McAfee manual antivirus script. After scanning, the report is automatically displayed> C:/McAfee/antivirus. bat
Echo created by SCZ 20061031> C:/McAfee/anti-virus. bat
Echo ============================================== ======>> C: /McAfee/antivirus. bat
Echo set filename = % Date:-= %. % time :::%%. html> C:/McAfee/antivirus. bat
Echo CD/d c:/McAfee> C:/McAfee/anti-virus. 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 virus scan is complete. Press any key to open the report...> C:/McAfee/antivirus. bat
Echo if exist "% filename %" start "% filename %"> C:/McAfee/antivirus. bat

CD/d c:/McAfee
Start "McAfee VirusScan" CMD/C antivirus. bat
Goto end

: Error
Pause> NUL
: End

 

 

2. Use the McAfee superdat shared on the LAN to run the script
@ Echo off
Echo McAfee manual antivirus script
Echo created by scz20061101
Echo ===================================================== ============
Echo recommends that you run this script in the administrator environment to successfully remove viruses.
Echo ===================================================== ============

 

Rem this script runs the supperdat that requires McAfee,: http://www.mcafee.com/apps/downloads/security_updates/superdat.asp? Region = cn & segment = Enterprise
After REM supperdat is downloaded, rename it McAfee *. EXE (* any character)

ECHO is connecting to the remote computer (SCZ )...
Net use // 10.1.103.10/User: SCZ/sczscz> NUL 2> & 1
Net use X:/del/Y> NUL 2> & 1
Net use X: // 10.1.103.10/update> NUL 2> & 1 | (the echo network is abnormal and the next step cannot be performed. Press any key to exit... & goto error)

CD/d x :/
If not exist McAfee *. EXE (the ECHO virus code does not exist and you cannot perform the next step. Press any key to exit... & goto error)
ECHO is releasing the 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 starts scanning...

Echo @ echo off> C:/McAfee/antivirus. bat
Echo.> C:/McAfee/antivirus. bat
Echo ============================================== ======>> C: /McAfee/antivirus. bat
Echo McAfee manual antivirus script. After scanning, the report is automatically displayed> C:/McAfee/antivirus. bat
Echo created by SCZ 20061031> C:/McAfee/anti-virus. bat
Echo ============================================== ======>> C: /McAfee/antivirus. bat
Echo set filename = % Date:-= %. % time :::%%. html> C:/McAfee/antivirus. bat
Echo CD/d c:/McAfee> C:/McAfee/anti-virus. 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 virus scan is complete. Press any key to open the report...> C:/McAfee/antivirus. bat
Rem echo pause ^> NUL> C:/McAfee/anti-virus. bat
Echo if exist "% filename %" start "% filename %"> C:/McAfee/antivirus. bat

CD/d c:/McAfee
Start "McAfee VirusScan" CMD/C antivirus. 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.