China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-13 21:58
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] Batch delete virus that deletes all specific files with the same name on the hard drive View 8,743 Replies 27
Floor 16 Posted 2006-09-22 09:40 ·  中国 湖南 娄底 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Originally posted by bosskof at 2006-9-22 05:10:
Why not del /s/a _desktop.ini under the drive letter? del /?


Indeed, it's much simpler than finding and deleting first!
业精于勤而荒于嬉,形成于思而毁于随。
Floor 17 Posted 2006-09-22 09:49 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Although you can execute the del statement under each drive letter, but doing so loses the advantage of batch processing automatically and batch handling problems.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 18 Posted 2006-09-22 10:55 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
My computer has also been infected with this hateful virus. In fact, _desktop.ini is a text file, and it can't be the root of the virus. No matter what techniques are used to delete _desktop.ini, it can't completely eliminate the root cause. The real virus roots are in %windir%\rundl132.exe, Logo1_.exe, dll.dll, as well as infected Office program files, QQ, Maxthon, Qianqian Jingting, RealPlayer, etc. As long as these infected software are run, the virus will self-replicate _desktop.ini again... The following is the manual removal method excerpted from the Internet:


  ① End the logo1_.exel and rundl132.exe processes, and delete logo1_.exel and rundl132.exe in %WinDir%;

  ② Find the registry key value: and delete it;

  ③ Find the registry key value rundl132.exe and delete it;

  ④ Restart the computer, do not run any programs, and delete the logo1_.exe, dll.dll, and rundl132.exe files in the C drive;

  ⑤ Uninstall or directly delete the infected QQ, Office series, Qianqian Jingting, RealPlayer, etc., and then reinstall them;

  ⑥ When installing the above software, make sure that the installation program is virus-free. When I reinstalled Office, I found that the Office installation program backed up in the hard drive was also infected with the virus, so I had to find a virus-free Office installation CD to install again.

  ⑦ When installing the program, always open the registry editor to check whether





Here I would like to add that there is another characteristic when this virus attacks: after an exe program is infected, the icon of this exe will become messy (such as ttplayer.exe), or the original true color icon will become a 16-color icon (such as QQ.exe). So if you see some exe icons suddenly have this change in "My Computer", it is very likely that the computer is infected with a virus.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 19 Posted 2006-09-22 11:50 ·  中国 云南 昆明 电信
初级用户
★★
Credits 134
Posts 50
Joined 2006-03-28 13:50
20-year member
UID 52939
Status Offline
for %%i (c d e f g h i j k l m n) do del /ash /s/q %%i:\_desktop.ini
Floor 20 Posted 2006-10-09 00:48 ·  中国 广东 东莞 电信
中级用户
★★
Credits 282
Posts 130
Joined 2006-09-20 22:25
19-year member
UID 63201
From 广东
Status Offline
Alas~ my computer also got this virus. At first I thought it was a system file!
Then later I found that the printer would print by itself, and on each printed paper there was only a line of date at the top, with nothing else. It was a waste of paper. I couldn't find the reason, so I GHOSTed the system, but the _desktop.ini file was still on other disks...
Learned something new.
~~~~好好学习
天天向上~~~~
Floor 21 Posted 2006-10-14 07:46 ·  中国 广东 广州 电信
初级用户
Credits 26
Posts 14
Joined 2006-01-14 22:35
20-year member
UID 48984
Status Offline
The code of the moderator and a concise piece of code didn't work for me here! The one from pengfei can be deleted. Passed
Floor 22 Posted 2006-10-14 08:25 ·  中国 四川 成都 移动
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
The fsutil command must be run with administrator privileges.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 23 Posted 2006-10-14 09:22 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /s /f /s/q %%i:\_desktop.ini


[ Last edited by qwe1234567 on 2006-10成-14 at 10:19 ]
Floor 24 Posted 2006-10-14 09:38 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 25 Posted 2006-10-14 10:09 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by qwe1234567 at 2006-10-14 09:22:
for %%i (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /s /f /s/q %%i:\_desktop.ini


  The for command of moderator qwe1234567 seems to be missing an "in"?
Floor 26 Posted 2006-10-14 10:20 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 27 Posted 2006-10-25 11:08 ·  中国 湖北 武汉 江夏区 电信
初级用户
Credits 31
Posts 15
Joined 2006-08-18 18:02
19-year member
UID 60803
Gender Male
Status Offline
The two batch files above, I only understand a little bit of each. Hey... it's powerful!
Floor 28 Posted 2008-03-05 12:42 ·  中国 湖南 长沙 联通
初级用户
★★
Credits 187
Posts 87
Joined 2007-10-23 16:04
18-year member
UID 100558
Gender Male
Status Offline
Originally posted by 3742668 at 2006-9-22 12:53 AM:
wmic datafile where "filename='desktop' and Extension='ini'" call delete /NOINTERACTIVE

The moderator's code is indeed quite concise, but I have a question. Why does it seem to work on some computers but not on others, and it prompts "No applicable instances found" on some? Both are XP SP2 systems, and the file does exist!
I hope an expert can give me some pointers?
Forum Jump: