中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 06:12
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Search for all executable files under the specified disk colon character
Printable Version  6,337 / 41
Floor1 funship Posted 2006-10-09 21:13
新手上路 Posts 4 Credits 12 From 安徽合肥
Does anyone have a good method to use batch commands to search for all *.exe files under the specified drive letter, display them, and then use del to delete them all? I'm currently researching a program to deal with logo1_.exe. I sincerely hope everyone can provide ideas! Thanks a lot!~

[ Last edited by funship on 2006-10-9 at 21:16 ]
Floor2 redtek Posted 2006-10-09 21:22
金牌会员 Posts 1,147 Credits 2,902
The latest version of KV can kill some variants~:)
At the same time, there are special antivirus programs for this virus on the Star Terminal and Kingsoft Antivirus websites.

At the same time, you can also find some content about netizens researching to delete this virus in the "Search" function of the forum~:)

[ Last edited by redtek on 2006-10-9 at 21:24 ]
Floor3 jieok3375 Posted 2006-10-10 02:21
中级用户 Posts 130 Credits 282 From 广东
Hehe~~
Is it "Happy Hour"?
I also got infected~
That thing is really annoying~
It seems that batch processing can't kill it~
Change to a dedicated killer~
Floor4 electronixtar Posted 2006-10-10 03:54
铂金会员 Posts 2,672 Credits 7,493
Actually, many problems in the forum can be solved using the search function built into Windows. For example, the problem of the original poster. Press Win+F and then search the entire disk for logo_.exe, and then delete all the results.
Floor5 lxmxn Posted 2006-10-10 05:27
版主 Posts 4,938 Credits 11,386

1. Newcomers can be understood to post multiple times~

2.
Floor6 ARCF Posted 2006-10-10 08:02
初级用户 Posts 14 Credits 32
del /s /q /f *.exe

Wow haha... I know this.

Ha!

[ Last edited by ARCF on 2006-10-10 at 08:03 ]
Floor7 lxmxn Posted 2006-10-10 11:52
版主 Posts 4,938 Credits 11,386

The code above is too simple; it can only delete .exe files in the current directory and all subdirectories beneath it.

Try this:


1. The execution efficiency of the above code is very low.

2. It is possible to delete system files or important files, so make sure you really want to execute this batch script.

3. Please modify the drive letters above by yourself.
Floor8 redtek Posted 2006-10-10 20:39
金牌会员 Posts 1,147 Credits 2,902
Originally posted by funship at 2006-10-9 21:17:
Does everyone have a good way to use batch commands to search for all *.exe files under the specified drive letter, display them, and then use del to delete them all? I'm currently researching this...



Really can't think of what the system is useful for if all executable files are deleted?
Just for this one virus? Haha...

Buy or DL antivirus software, which not only protects existing data but also removes the virus.
Floor9 qq82015930 Posted 2006-10-13 06:35
中级用户 Posts 109 Credits 235
Got it, I've learned something from this.
Floor10 lfengoo Posted 2006-10-20 23:33
新手上路 Posts 5 Credits 10
Floor11 tianzizhi Posted 2006-10-21 00:32
高级用户 Posts 214 Credits 623
for %%1 in (c: d: e: f: g:) do @%%1 & del *.exe /s /a /f /q
But you deleted them all, the system is also done for.
Floor12 lxmxn Posted 2006-10-21 00:32
版主 Posts 4,938 Credits 11,386

  Hehe, I also don't know why he wanted to find all EXE files on the hard drive and delete them... I was confused for a long time...
Floor13 zerocq Posted 2006-10-21 00:34
中级用户 Posts 196 Credits 458
for /r C:\ %a in (logo*.exe) do @echo %a

C:\ can be replaced with any drive:lol:

Just change the command after do:P
Floor14 lxmxn Posted 2006-10-21 00:43
版主 Posts 4,938 Credits 11,386

  The method upstairs is still not advisable.

  If you change echo to del, it may delete files like logonui.exe and logoff.exe in the system folder.
Floor15 zerocq Posted 2006-10-21 00:46
中级用户 Posts 196 Credits 458
Can the wildcards in parentheses be flexible? :P

logo1_.*

*ogo1*.exe so many many

First echo once and then del :D
1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023