Make a Batch Antivirus

Do you want to make your own batch antivirus that can detect batch viruses and scan batch files? There's a step for this.

Steps

  1. Open Notepad.
  2. Type the code at the next step:
    • @echo off
    • color cb
    • title Batch Antivirus
    • cls
    • echo ===============
    • echo [ Batch-Master]
    • echo ===============
    • echo If There's no message ,You are protected.
    • set /p a=Enter a batch file to scan:
    • for /f %%x in (
    • 'findstr /i /m "virus r.i.p byebye HaHaHa Hacked Hack" %a%.bat'
    • ) do (
    • if /i %%x equ %a%.bat (
    • for /f %%z in (
    • 'findstr /i /b /m "tskill del copy shutdown ipconfig ren reg" %a%.bat'
    • ) do (
    • if /i %%z equ %a%.bat (
    • cls
    • echo Virus Detected!!
    • del %a%.bat
    • echo %a%.bat was deleted....
    • pause >nul
    • )
    • )
    • )
    • )
    • pause >nul
  3. Save this code as "antivirus.bat"
  4. Open this batch file.



Tips

  • Please test this antivirus,except for the extremely harmful batch files that your real antivirus can detect.
  • If there's a strange batch file, scan it using this antivirus.
  • You could run this antivirus in full screen mode.

Warnings

  • Install a reputable antivirus program like Norton, Avira, AVG, etc.
  • Note: it can only help your computer to detect ONLY Batch viruses.
  • Don't scan your antivirus batch file. It will see it as a virus and delete it.

Things You'll Need

  • A PC or Laptop
  • Windows XP, 7, Vista, 8, 8.1 or 10
  • Notepad

Related Articles