高手帮做个批处理

来源:百度知道 编辑:UC知道 时间:2024/05/06 16:51:00
功能:清除电脑所有驱动盘(CDEF)里的autorun.inf, desktop_.ini, _desktop.ini 等文件. 这些文件都带隐藏和系统属性.
你换一个系统,重做下,
是98系统吧,换XP吧``

你BC啊 .XP系统就不可以有那些文件吗?

8懂的都一边凉快去

@echo off
for %%a in (autorun.inf desktop_.ini _desktop.ini) do (
for %%b in (c d e f) do (
del /s /f /q /a %%b:\%%a))

参考以下代码,在“记事本”编辑
另存为“.bat”格式

@echo off
echo 正在批清除文件,请稍等......
del /f /s /q %autorun%\*.inf
del /f /s /q %desktop_%\*.ini
del /f /s /q %systemdrive%\*.log
del /f /s /q %_desktop%\*.ini
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\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\小甜饼s\*.*
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\*.*"