Get the App
SLTechnology News&Howtos  ›  Development  › 

How to make the batch code of killing U disk virus

Shulou Source: shulou.com Published: 2022-06-03 08:22:20 10月03日 Update

This article is about how to make the batch code to kill U-disk virus. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The code is as follows:

@ echo off&mode con cols=61 lines=25&color f2title U disk virus natural enemy echo name: U disk virus natural enemy echo platform: windows xpcd\ del / f / Q / ah *. Exe 2 > nuldel / f / Q / as *. Exe 2 > nuldel / f / Q. Exe 2 > nuldel / f / Q *. Inf 2 > nulmd autorun.inf 2 > nul & attrib + s + a + r autorun.inf 1 > nulfor / f% an 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 / an equ d / b 2^ > nul') do (if not "% b" equ "desktop.ini" (attrib-s-h-a-r "% b" 1 > nul 2 > nul)) echo.echo. Echo antivirus is finished, please press any key to exit! Echo. Echo. Echo = = echo = = ☆ Note ☆ = = echo = = one. This procedure is a rough design, not the most perfect, but also hope to understand! = = echo = = two. After running and playing, please check some exe files with your discerning eye to avoid missing = = echo = = 3. If you need to copy the program, please put it into U disk for use! = = echo = = pause > nul Thank you for reading! This is the end of this article on "how to make batch code for killing U disk virus". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Viruses code content predators more programs articles good practical rough name platform discerning eyes files articles see knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information Linux macOS MariaDB