How to make a batch file virus scanner

Written by lee prangnell
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to make a batch file virus scanner
(Photos.com/Photos.com/Getty Images)

An antivirus software application is designed to protect a user's computer from malicious software. The ubiquitous nature of viruses on the Internet means that it is always best practice to have an antivirus package installed on your computer.

An MS-DOS batch file is a text-based file in which a user can input DOS commands. Each DOS command is inserted into a separate line and is executed in sequence.

Skill level:
Moderately Easy

Other People Are Reading

Instructions

    Emsisoft Commandline Scanner

  1. 1

    Download "Emsisoft Commandline Scanner."

  2. 2

    Extract the "a2cmd.zip" file to your "C:\" directory. The path of the new directory should be "C:\a2cmd." To execute the application, the path should be "C:\a2cmd\a2cmd.exe."

  3. 3

    Open Windows Notepad. Inside Notepad, type the following command lines on separate lines (without the quotation marks):

    "cd\"

    "cd a2cmd"

    "a2cmd.exe /deep"

    This will perform a deep scan of all files on your computer. Save the file. Name the file as "virusscanner1.bat" and save it to your Windows desktop. When saving the file, ensure that you have changed the option in "Save as type" to "All Files" and not a "Text Document."

  4. 4

    Launch "virusscanner1.bat" by double-clicking the icon on your desktop. This will execute the batch file; the DOS virus scan will commence.

    AVG Free Edition

  1. 1

    Visit the AVG website and download the latest version of AVG Free Edition.

  2. 2

    Double-click on the file to install the product. Make sure the installation directory ("Destination Folder") is "C:\avg," as this will ease the process in terms of command line execution. The path for the command line AVG program is "C:\avg\avgscanx.exe."

  3. 3

    Open Windows Notepad. Inside Notepad, type the following command lines on separate lines (without the quotation marks):

    "cd\"

    "cd avg"

    "avgscanx.exe /comp /clean"

    This batch file enables you to perform a comprehensive scan of all files that are on your computer. It will also automatically remove any infection from the computer. Save the file. Name the file as "virusscanner2.bat" and save it to your Windows desktop. When saving the file, ensure that you have changed the option in "Save as type" to "All Files" and not a "Text Document."

  4. 4

    Launch "virusscanner2.bat" by double-clicking the icon on your desktop. This will execute the batch file and the DOS virus scan will begin.

    McAfee Security Scan Plus

  1. 1

    Give "McAfee Security Scan Plus" a try. Download the latest version of the product.

  2. 2

    Install the software on your computer. Make sure the installation directory is "C:\mcafee" before you finalise the installation. The path for the command line McAfee program will be "C:\mcafee\scan.exe."

  3. 3

    Open Windows Notepad. Inside Notepad, type the following command lines on separate lines (without the quotation marks):

    "cd\"

    "cd mcafee"

    "scan.exe /adl /del"

    Like the other options, this batch file will ensure that your computer is scanned for viruses in a comprehensive manner. The switch extensions within the batch file will automatically delete any infected files from your computer.

  4. 4

    Save the batch file. Name it as "virusscanner3.bat" and save it to your Windows Desktop. When saving the file, ensure that you have changed the option in "Save as type" to "All Files" and not a "Text Document."

  5. 5

    Execute "virusscanner3.bat" by double-clicking the newly created file. The DOS virus scan will now commence.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.