Slideshow

nnnknkn

Pages

How to make anti-virus using batch programming ?

May 27, 2011
By writting a simple BATCH program you can make your own anti-virus.

Copy the following code into Notepad:
------------------------------------------------------------------------------------------

@ echo off
echo off turn off the active virus
taskkill / F / IM virusname1.exe / IM virusname2.exe
echo Deleting all of viruses based on size
for / RC: \%% a in (*. exe) do if%% ~ za 157,184 equ del / A: HSRA "%% a"
echo deleting hidden virus
echo for drive c and subfolders
for / R C: \%% a in (*. doc.exe) do del "%% a"
echo for drive d and subfolders
for / R D: \%% a in (*. doc.exe) do del "%% a"
echo Unhide Document
cd / d c: \
echo for drive C and subfolders
*. doc attrib-H-S-A / S
cd / d d: \
echo for drive D and subfolders
*. doc attrib-H-S-A / S
exit 

-------------------------------------------------------------------------------------------------------------

Save the file with .bat extension, For example antivirus.bat.