How To Make Your Own Antivirus



This Antivirus will work in the command prompt (cmd) and it will delete all the unwanted and malicious files from your system.


Creating Your Own Antivirus

  • Open notepad in your system by typing " Notepad " in the search or press   + R and type " notepad " and press enter.
  • After opening notepad just copy the text below and paste it into your notepad



Code :-
@echo off
title Antivirus
echo Antivirus
echo created by your name
:start
IF EXIST virus.bat goto infected
IF NOT EXIST virus.bat goto clean
cd C:\Windows\system32
:infected
echo WARNING VIRUS DETECTED!
del virus.bat
pause
goto start
:clean
echo System secure!
pause
exit

  • Now save the file with .bat extension for example :- Myantivirus.bat then find " save as type " select all files from the dropdown.




  • Now when you run the file it will automatically start scanning files.
Previous
Next Post »