|
funship
新手上路

积分 12
发帖 4
注册 2006-7-29 来自 安徽合肥
状态 离线
|
『楼 主』:
搜索指定盘条符下的所有可执行文件
使用 LLM 解释/回答一下
请问大家有没有很好的方法,来用批处理命令搜索所有的指定盘符下面的*.exe文件,并将其显示出来,然后用del,将其全部删除,本人现在正在研究一个对付logo1_.exe的程序,望请大家提供思路!不胜感激!~
Last edited by funship on 2006-10-9 at 21:16 ]
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 ]
|
|
2006-10-9 21:13 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
最新版KV能杀部分变种~:)
同时端星与金山杀毒网站上有专门针对此病毒的杀毒程序。
同时,在论坛的“搜索”功能内同样可以找到网友研究删这个病毒的部分内容~:)
Last edited by redtek on 2006-10-9 at 21:24 ]
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 ]
|
|
2006-10-9 21:22 |
|
|
jieok3375
中级用户
  
积分 282
发帖 130
注册 2006-9-20 来自 广东
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
哈哈~~
是不是“欢乐时光”啊~
偶也中了~
那玩意儿贼讨厌呀~
用批处理好像杀不死啊~
换专杀吧~
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~
|

~~~~好好学习
天天向上~~~~ |
|
2006-10-10 02:21 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
其实论坛里好多问题用 Windows 自带的搜索功能就能完成的。比如楼主的问题。 Win+F 然后全盘搜索 logo_.exe ,把结果全del就搞定了
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.
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-10 03:54 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
1.新手上路,可以理解一帖多发啦~
2.
@echo off
echo.
echo 声明:
echo.
echo 删除指定驱动器里面的.exe文件,可能导致不良的后果.
echo.
echo 对此后果本人概不负责.
echo.
echo -------------------by:Mis-sqm
echo.
set /p b=是否继续?(Y / N):
if %b%==y goto:yes
if %b%==n goto:eof
:yes
cls
set /p a=请输入要搜索的盘符:
echo.
for /f %%i in ('dir /s/b/a-d %a%:\*.exe') do del /f /q %%i
echo.
echo 已经删除指定驱动器下的所有*.exe文件 & pause>nul
1. Newcomers can be understood to post multiple times~
2.
@echo off
echo.
echo Declaration:
echo.
Deleting .exe files in the specified drive may cause adverse consequences.
echo.
I shall not be held responsible for such consequences.
echo.
-------------------by:Mis-sqm
echo.
set /p b=Continue? (Y / N):
if %b%==y goto:yes
if %b%==n goto:eof
:yes
cls
set /p a=Please enter the drive letter to search:
echo.
for /f %%i in ('dir /s/b/a-d %a%:\*.exe') do del /f /q %%i
echo.
All *.exe files under the specified drive have been deleted & pause>nul
|
|
2006-10-10 05:27 |
|
|
ARCF
初级用户
 
积分 32
发帖 14
注册 2006-10-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
del /s /q /f *.exe
哇卡卡...这个我会.
哈!
Last edited by ARCF on 2006-10-10 at 08:03 ]
del /s /q /f *.exe
Wow haha... I know this.
Ha!
Last edited by ARCF on 2006-10-10 at 08:03 ]
|
|
2006-10-10 08:02 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
楼上这个代码太简单了,只能删除当前目录及其下的所有子目录中的.exe文件。
用这个试试:
@echo off
for /f "tokens=*" %%i in ('dir/s/b/a-d c:\*.exe d:\*.exe e:\*.exe f:\*.exe') do (
echo %%i
del /s /q /f %%i
)
1.以上代码的执行效率是很低的。
2.有可能删除系统文件或者重要的文件,请确定是否真的要执行这个批处理。
3.以上盘符请自行修改。
The code above is too simple; it can only delete .exe files in the current directory and all subdirectories beneath it.
Try this:
@echo off
for /f "tokens=*" %%i in ('dir/s/b/a-d c:\*.exe d:\*.exe e:\*.exe f:\*.exe') do (
echo %%i
del /s /q /f %%i
)
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.
|
|
2006-10-10 11:52 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by funship at 2006-10-9 21:17:
请问大家有没有很好的方法,来用批处理命令搜索所有的指定盘符下面的*.exe文件,并将其显示出来,然后用del,将其全部删除,本人现在正在研究一丠...
真想不出来如果把所有可执行文件都删光了,这系统还有什么用?
就为这一个病毒?哈哈……
买或DL杀病毒软件吧,既保护了现有数据又清除了病毒。
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.
|
|
2006-10-10 20:39 |
|
|
qq82015930
中级用户
  
积分 235
发帖 109
注册 2006-8-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
有被我学到了哈
Got it, I've learned something from this.
|
|
2006-10-13 06:35 |
|
|
lfengoo
新手上路

积分 10
发帖 5
注册 2006-10-20
状态 离线
|
|
2006-10-20 23:33 |
|
|
tianzizhi
高级用户
   
积分 622
发帖 214
注册 2006-9-22
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
for %%1 in (c: d: e: f: g:) do @%%1 & del *.exe /s /a /f /q
不过你都删了,系统也玩完了.
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.
|
|
2006-10-21 00:32 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
呵呵,我也搞不清楚他为啥要查找硬盘上所有的exe文件,并把它删除……纳闷了半天……
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...
|
|
2006-10-21 00:32 |
|
|
zerocq
中级用户
  
积分 458
发帖 196
注册 2006-10-5
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
for /r C:\ %a in (logo*.exe) do @echo %a
C:\这里可以换成任意盘:lol:
自已改下do后边的命令:P
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
|
|
2006-10-21 00:34 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
楼上这个方法还是不可取吧。
如果把echo改成del了,可能删除了系统文件夹里面的logonui.exe和logoff.exe等文件哦。
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.
|
|
2006-10-21 00:43 |
|
|
zerocq
中级用户
  
积分 458
发帖 196
注册 2006-10-5
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
括号里边的通配符可以变通的嘛:P
logo1_.*
*ogo1*.exe好多好多
先echo一次再del:D
Can the wildcards in parentheses be flexible? :P
logo1_.*
*ogo1*.exe so many many
First echo once and then del :D
|
|
2006-10-21 00:46 |
|