Batch Processing Code for Self-made Killing U Disk Virus

Time:2019-10-9
Copy codeThe code is as follows:
@echo off&mode con cols=61 lines=25&color f2
Natural enemies of Title U disk virus
Echo name: natural enemy of U disk virus
Echo platform: Windows XP
Author of echo: Xiaoqiang
All rights reserved for echo, please don’t flip!
cd\
del /f /q /ah *.exe 2>nul
del /f /q /as *.exe 2>nul
del /f /q …exe 2>nul
del /f /q *.inf 2>nul
md autorun.inf 2>nul &attrib +s +h +a +r autorun.inf 1>nul
for /f %%a in (‘dir /ad /b 2^>nul’) do (
del /f /q “%%a.exe” 2>nul &rd /s /q “%%a.exe” 2>nul
if not “%%a” equ “autorun.inf” (
attrib -s -h -a -r “%%a”
)
)
for /f %%b in (‘dir /a-d /b 2^>nul’) do (
if not “%%b” equ “desktop.ini” (
attrib -s -h -a -r “%%b” 1>nul 2>nul
)
)
echo.
echo.                            
After echo antivirus, please press any key to exit!!!!!!!
echo.          
echo.           
echo =============================================================
Echo == ==
Echo = 1. This procedure is roughly designed, not the most perfect, but also look forward to understanding! ==
Echo = 2. After running and playing, please check some exe files with your eyesight, so as not to miss killing.==
Echo = three. If you need to copy the program, please put it into U disk to use! ==
echo =============================================================
pause>nul