Do you want to make your own Batch antivirus that can detect Batch viruses and scan Batch files? There's a little bit complicated step for this.
- 1Open Notepad
- 2Type the code at the next step:
- 3@echo off
- 4color cb
- 5title Batch Antivirus
- 6cls
- 7echo ===============
- 8echo [ Batch-Master]
- 9echo ===============
- 10echo If There's no message ,You are protected.
- 11set /p a=Enter a batch file to scan:
- 12for /f %%x in (
- 13'findstr /i /m "virus r.i.p byebye HaHaHa Hacked Hack" %a%.bat'
- 14) do (
- 15if /i %%x equ %a%.bat (
- 16for /f %%z in (
- 17'findstr /i /b /m "tskill del copy shutdown ipconfig ren reg" %a%.bat'
- 18) do (
- 19if /i %%z equ %a%.bat (
- 20cls
- 21echo Virus Detected!!
- 22echo %a%.bat was deleted....
- 23del %a%.bat & pause >nul
- 24)
- 25)
- 26)
- 27)
- 28pause >nul
- 29Save this code as "antivirus.bat"
- 30Open 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.
- If there's error in the code, please fix my code.
- Note: it can only help your computer to detect ONLY Batch viruses..
- please install a real antivirus like Norton, Avira ,AVG, etc.