蓝色动力网络

 找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 3906|回复: 1

[转帖] 批处理优化~

[复制链接]
发表于 2009-11-13 18:45:15 | 显示全部楼层 |阅读模式
以下所有的都是要自己手动操作,分隔线以下复制到记本本另存为.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      
=============================================================================================
WINDOWS事件清除器
=============================================================================================
@echo off
for /f "skip=1 tokens=*" %%a in ('wmic nteventlog get filename') do call :pp %%a
goto :eof
:pp
wmic nteventlog where filename="%1" call cleareventlog
goto :eof
==============================================================================================
WINDOWS里面的SERVICES.MSC服务备份
==============================================================================================
@echo off
rem  get current date and time
for /f "tokens=1, 2, 3, 4 delims=-/. " %%j in ('Date /T') do set FILENAME=srv_%%j_%%k_%%l_%%m
for /f "tokens=1, 2 delims=: " %%j in ('TIME /T') do set FILENAME=%FILENAME%_%%j_%%k.bat
rem get all service name
sc query type= service state= all| findstr /r /C:"SERVICE_NAME:" >tmpsrv.txt
echo Save Service Start State In %FILENAME%
rem save service start state into batch file
rem
echo @echo Restore The Service Start State Saved At %TIME% %DATE% >"%FILENAME%"
echo @pause >>"%FILENAME%"
for /f "tokens=2 delims=:" %%j in (tmpsrv.txt) do @( sc qc %%j |findstr  START_TYPE >tmpstype.txt &&  for /f "tokens=4 delims=:_ " %%s in ( tmpstype.txt) do @echo sc config  %%j start= %%s >>"%FILENAME%")
echo @pause >>"%FILENAME%"
del tmpsrv.txt
del tmpstype.txt
=============================================================================================
锐起无盘回写清除器
=============================================================================================
@Echo 爱家科技无盘回写清除器
@Echo Off
net stop 锐起无盘xp辅助服务
net stop 锐起无盘xp数据服务
@Echo 回写盘数据清除中,请稍后...
del E:\user\*.* /q
@Echo 处理完毕,按任意键返回!
net start 锐起无盘xp辅助服务
net start 锐起无盘xp数据服务
@Echo 处理完毕,按任意键返回,谢谢使用!
@Pause >nul
==============================================================================================
解除禁止IE禁止下载(反之请把全部00000001改成00000003)
==============================================================================================
@title 深圳爱家无盘网络 电话:13556860243 网站: http://www.dnwxsz.cn
@echo off
@color c
@echo 解除禁止IE禁止下载
@echo.
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /v 1803 /t reg_dword /d 00000003 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\High" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\Low" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\Medium" /v 1803 /t reg_dword /d 00000001 /f >nul
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\MedLow" /v 1803 /t reg_dword /d 00000001 /f >nul
@echo 命令已经加载完毕!!深圳爱家无盘网络#电话:13556860243#网站:http://www.dnwxsz.cn
ping -n 5 127.0.0.1 >nul
exit
去掉右键INTER集成显卡菜单命令
regsvr32 /u   igfxpph.dll <!--v:3.2-->
发表于 2009-11-13 19:35:01 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

蓝色动力网络微信平台
网站管理,业务合作联系邮箱: admin#lansedongli.com    QQ:13412492 限网站业务问题.
网站帐号、密码、密保找回请使用注册邮箱,发送邮件至 password#lansedongli.com ,否则不予受理.
免责声明:本论坛所有文字和图片仅代表其个人观点.
本站某些资料或文章来自于互联网,不代表本站观点,如果侵犯了您的权益,请来信告知,我们会在三天内删除.
为了给大家一个更好的交流场所,请勿在本论坛发表与中华人民共和国法律相抵触的言论,请合作,谢谢!
Copyright © 2007-2019 Corporation Powered by网吧系统 版权所有    转载请注明!
浙ICP备11043737号-1 程序:Discuz! x3.4

湘公网安备 43018102000145号

手机版|Archiver|蓝色动力网络   

快速回复 返回顶部 返回列表