1、win 7系统命令的运用 随着系统文件或者任务越来越多,单个处理对我们来说工程有些浩大,有没有什么办法可以一次性处理很多东西的方法呢?这种方法当然是有了,可以利用命令来做到,下面就给大家介绍如何利用命令批处理吧。 mode con cols=85 lines=30 title win7终级批处理 @ ECHO OFF cls color 3d :main ECHO 1 - 清理win7、vista系统垃圾 2 - 修复打开图片缓慢 ECHO 3 - 重启explorer进程 4 - 打开系统资源监视器 ECHO 5 - 清除任务栏历
2、史图标 6 - 去掉快捷方式小箭头(已经修改) ECHO 7 - 恢复快捷方式小箭头 8 - 优化系统服务 [ 慎 ] ECHO 9 - 清除图片位置冗余文件夹 0 - 退出 ECHO a - 修改文件名称 b - 电脑关机操作 ECHO c - 硬盘转格式ntfs x - 其他信息以及需要请选择这里 ECHO d -清理xp系统垃圾 set choice= set /p choice=请输入选择: if /i '%choice%'=='1' goto a if /i '%choice%'=='2' goto b if /i '%ch
3、oice%'=='3' goto c if /i '%choice%'=='4' goto d if /i '%choice%'=='5' goto e if /i '%choice%'=='6' goto f if /i '%choice%'=='7' goto g if /i '%choice%'=='8' goto h if /i '%choice%'=='9' goto i if /i '%choice%'=='a' goto l if /i '%choice%'=='b' goto k if /i '%choice%'=='c'
4、goto j if /i '%choice%'=='x' goto x if /i '%choice%'=='d' goto m if /i '%choice%'=='0' goto end :m 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
5、/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*.* -
6、 del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*" - del /f /s /q "%userprofile%Local SettingsTemp*.*" - del /f /s /q "%userprofile%recent*.*" - echo 清除系统xp完成! - echo. & pause - goto main :x ( ECHO %username% 感谢你使用我们团队的作品 ECHO 有些批处理,比如定量修改大量文件名称,并未一次写完!
7、 ECHO 请联系我们![团队:师院暗淡一辈子]{群:60882421} )|msg %username% /time 30 exit :end ( ECHO %username% 您好! ECHO 谢谢您使用[win7批处理] ECHO 最近有人冒写原作,请联系!1052165538 )|msg %username% /time 20 exit :a cls ECHO 正在清理系统盘下日志文件... del /f /s /q %systemdrive%*.log >nul 2>nul ECHO 正在清理
8、系统盘下备份文件... del /f /s /q %systemdrive%*.bak >nul 2>nul ECHO 正在清理磁盘扫描留下的无用文件... del /f /s /q %systemdrive%*.chk >nul 2>nul ECHO 正在清理回收站的无用文件... del /f /s /q %systemdrive%recycled*.* >nul 2>nul ECHO 正在清理系统目录下预读取文件... del /f /s /q %windir%prefetch*.* >nul 2>nul ECHO 正在清理系统维护等操作产
9、生的临时文件... rd /s /q %windir%temp md %windir%temp >nul 2>nul ECHO 正在清理当前用户的Cookies(IE)... del /f /q %userprofile%AppDataRoamingMicrosoftWindowsCookies*.* >nul 2>nul ECHO 正在清理系统盘下临时文件,可能较慢,请稍等... del /f /s /q %systemdrive%*.tmp >nul 2>nul del /f /s /q %systemdrive%*._mp >nul 2>nul
10、del /f /s /q %systemdrive%*.ftg >nul 2>nul del /f /s /q %systemdrive%*.gid >nul 2>nul del /f /s /q %systemdrive%*.$$$ >nul 2>nul del /f /s /q %systemdrive%*.@@@ >nul 2>nul del /f /s /q %systemdrive%*.syd >nul 2>nul del /f /s /q %systemdrive%*.gts >nul 2>nul ECHO 正在清理IE临时文件... del /f /s /q "%userprofile%AppDataLocalMicrosoftWindowsTemporary Internet Files*.*" >nul 2>nul goto main :b cls ECHO 正在修复,请稍等... del %windir%system32spooldriverscolorCalibratedDisplayProfile-?.icc >nul 2>nul ping localhost -n 4 >nul 2>nul goto main :c cls 更多信息来自系统吧:






