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 \ antivirus. bat
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 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 \ antivirus. bat
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 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

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.