首页 电脑 电脑学堂 查看内容

windows7垃圾清理(bat)

2011-8-29 10:35 678 0

摘要: 代码: @echo off Title Windows7系统垃圾清理 color 0a mode con cols=55 lines=16 echo. echo. echo. ec...
关键词: echo nul systemdrive 正在 attrib userprofile 文件 cls del Settings

代码: @echo off Title Windows7系统垃圾清理 color 0a mode con cols=55 lines=16 echo. echo. echo. echo echo. echo. echo. echo echo. cls echo. echo. echo. echo. echo 1,正在清理Tmp文件.... echo. attrib -r -a -s -h "%systemdrive%\*.tmp" /d /s>nul 2>nul attrib -r -a -s -h "%systemdrive%\*._mp" /d /s>nul 2>nul del /f /s /q "%systemdrive%\*.tmp">nul 2>nul del /f /s /q "%systemdrive%\*._mp">nul 2>nul cls echo. echo. echo. echo. echo 2,正在清理日志文件.... echo. attrib -r -a -s -h "%systemdrive%\*.log" /d /s>nul 2>nul del /f /s /q "%systemdrive%\*.log">nul 2>nul cls echo. echo. echo. echo. echo 3,正在清理Gid文件.... echo. attrib -r -a -s -h "%systemdrive%\*.gid" /d /s>nul 2>nul del /f /s /q "%systemdrive%\*.gid">nul 2>nul cls echo. echo. echo. echo. echo 4,正在清理Chk文件.... echo. attrib -r -a -s -h "%systemdrive%\*.chk" /d /s>nul 2>nul del /f /s /q "%systemdrive%\*.chk">nul 2>nul cls echo. echo. echo. echo. echo 5,正在清理Old文件.... echo. attrib -r -a -s -h "%systemdrive%\*.old" /d /s>nul 2>nul del /f /s /q "%systemdrive%\*.old">nul 2>nul cls echo. echo. echo. echo. echo 6,正在清理回收站.... echo. attrib -r -a -s -h "%systemdrive% ecycled\*.*" /d /s>nul 2>nul del /f /s /q "%systemdrive% ecycled\*.*">nul 2>nul cls echo. echo. echo. echo. echo 7,正在清理备份文件.... echo. attrib -r -a -s -h "%windir%\*.bak" /d /s>nul 2>nul del /f /s /q "%windir%\*.bak">nul 2>nul cls echo. echo. echo. echo. echo 8,正在清理文件使用痕迹.... echo. attrib -r -a -s -h "%windir%\prefetch\*.pf" /d /s>nul 2>nul del /f /s /q "%windir%\prefetch\*.pf">nul 2>nul cls echo. echo. echo. echo. echo 9,正在清理Cookies文件.... echo. attrib -r -a -s -h "%userprofile%\cookies\*.*" /d /s>nul 2>nul del /f /q "%userprofile%\cookies\*.*">nul 2>nul cls echo. echo. echo. echo. echo 10,正在清理上网产生的临时文件.... echo. attrib -r -a -s -h "%userprofile%\Local Settings\Temporary Internet Files\*.*" /d /s>nul 2>nul del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*">nul 2>nul cls echo. echo. echo. echo. echo 11,正在清理临时文件.... echo. attrib -r -a -s -h "%userprofile%\Local Settings\Temp\*.*" /d /s>nul 2>nul del /f /s /q "%userprofile%\Local Settings\Temp\*.*">nul 2>nul cls echo. echo. echo. echo. echo 12,正在清理用户历史文件.... echo. attrib -r -a -s -h "%userprofile% ecent\*.*" /d /s>nul 2>nul del /f /s /q "%userprofile% ecent\*.*">nul 2>nul cls echo. echo. echo. echo echo. echo. echo. echo exit
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部