如何让电脑自动删除机器内文件?

来源:百度知道 编辑:UC知道 时间:2024/06/10 23:48:08
我前一阵子在单位是负责做些表格的!前几天忽然给了我一大批表格要我做出来,拼了几夜老命刚做出来立刻把我掉离文职。
摆明了阴我!但是因为马上到年前工作不好找,我还不想离职,所以希望那位高手能指教,或者是软件也好怎样也好,能不能自动设定个时间把电脑内D盘的文件自动删除?这样我不在现场,他找我也没用。

让电脑自动删除文件,方法如下。

1,先做一个垃圾文件批处理,用记事本输入以下代码。然后保存成“自动清理垃圾.bat”,注意,后缀名一定要是bat。
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
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%\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完成!
echo. & pause

2,做一个计划任务,加载这