1. 麻烦帮忙优化下bat脚本

用XCOPY 命令,加上 /D参数,只复制源文件时间比目标时间新的文件。

2. bat 进程管理(优化)

TaskKill /m Notepad.exe

或者
ntsd -c q -pn Notepad.exe

3. 系统优化BAT指令

是清理系统垃圾么? 以下代码

@echo off

echo 正在清除系统垃圾文件,请稍等......

del /f /s /q %systerive%\*.tmp

del /f /s /q %systerive%\*._mp

del /f /s /q %systerive%\*.log

del /f /s /q %systerive%\*.gid

del /f /s /q %systerive%\*.chk

del /f /s /q %systerive%\*.old

del /f /s /q %systerive%\recycled\*.*

del /f /s /q %windir%\*.bak

del /f /s /q %windir%\prefetch\*.*

rd /s /q %windir%\temp & %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

4. 批处理,bat脚本启动优化,会的尽管来,搞定赏高分!

@echoon
lsnrctlstart
@pause
runas/savecred/user:devadm"cmd/ccd/dD:oracleDEV11204BIN&sqlplus"/assysdba"@Open.bat"

5. 求 windows7 服务优化BAT (软件精通者请进)

@echo off
color 0A
title Windos Seven 服务优化批处理 --当前时间:%time%
echo ========================================================================
echo Windos Seven 服务优化批处理
echo ========================================================================
echo.
echo 与Windows XP和Windows 2003才七十多个服务相比,Windos Vista已经增加到一百三十多个服务,而Windos Seven也继续继承了这一特点,这不可避免地加大了系统资源占用,拖慢了系统速度,因此,手工优化服务就显得更加重要。
echo.
echo 默认开启AERO,开启自动更新(检查更新但让我选择是否下载和安装)。
echo.
echo 其他的服务,可以具体的根据自己的需要来定制。。。。。
echo.

echo.
echo 开始进行系统服务优化……
echo.
echo.
echo.
pause

:return

cls
@echo off
color 0A
title Windos Seven 服务优化批处理 --当前时间:%time%
----end---------

另外一个。
Windows 7服务优化bat

@echo Restore The Service Start State Saved At 19:17:02.10 2011/01/23 周日
@pause
sc config AeLookupSvc start= DEMAND
sc config ALG start= DEMAND
sc config AppIDSvc start= DEMAND
sc config Appinfo start= DEMAND
sc config AppMgmt start= DEMAND
sc config AudioEndpointBuilder start= AUTO
sc config Audiosrv start= AUTO
sc config AxInstSV start= DEMAND
sc config BDESVC start= DEMAND
sc config BFE start= DISABLED
sc config BITS start= DISABLED
sc config Browser start= DISABLED
sc config bthserv start= DEMAND
sc config CertPropSvc start= DEMAND
sc config clr_optimization_v2.0.50727_32 start= AUTO
sc config COMSysApp start= DEMAND
sc config CryptSvc start= AUTO
sc config CscService start= DEMAND
sc config DcomLaunch start= AUTO
sc config defragsvc start= DEMAND
sc config Dhcp start= AUTO
sc config Dnscache start= AUTO
sc config dot3svc start= DEMAND
sc config DPS start= DISABLED
sc config EapHost start= DEMAND
sc config EFS start= DEMAND
sc config ehRecvr start= DEMAND
sc config ehSched start= DEMAND
sc config eventlog start= AUTO
sc config EventSystem start= DISABLED
sc config Fax start= DEMAND
sc config fdPHost start= DEMAND
sc config FDResPub start= DEMAND
sc config FontCache start= DEMAND
sc config FontCache3.0.0.0 start= DEMAND
sc config gpsvc start= AUTO
sc config hidserv start= DEMAND
sc config hkmsvc start= DEMAND
sc config HomeGroupListener start= DEMAND
sc config HomeGroupProvider start= DEMAND
sc config idsvc start= DEMAND
sc config IKEEXT start= DISABLED
sc config IPBusEnum start= DEMAND
sc config iphlpsvc start= DISABLED
sc config KeyIso start= DEMAND
sc config KtmRm start= DEMAND
sc config LanmanServer start= DISABLED
sc config LanmanWorkstation start= AUTO
sc config lltdsvc start= DEMAND
sc config lmhosts start= DISABLED
sc config Mcx2Svc start= DISABLED
sc config MMCSS start= AUTO
sc config MpsSvc start= DISABLED
sc config MSDTC start= DEMAND
sc config MSiSCSI start= DISABLED
sc config msiserver start= DEMAND
sc config napagent start= DISABLED
sc config Netlogon start= DEMAND
sc config Netman start= DEMAND
sc config netprofm start= DEMAND
sc config NetTcpPortSharing start= DISABLED
sc config NlaSvc start= AUTO
sc config nsi start= AUTO
sc config p2pimsvc start= DEMAND
sc config p2psvc start= DEMAND
sc config PcaSvc start= DEMAND
sc config PeerDistSvc start= DEMAND
sc config pla start= DEMAND
sc config PlugPlay start= AUTO
sc config PNRPAutoReg start= DEMAND
sc config PNRPsvc start= DEMAND
sc config PolicyAgent start= AUTO
sc config Power start= AUTO
sc config ProfSvc start= AUTO
sc config ProtectedStorage start= DEMAND
sc config QWAVE start= DEMAND
sc config RasAuto start= DEMAND
sc config RasMan start= DEMAND
sc config RemoteAccess start= DISABLED
sc config RemoteRegistry start= DISABLED
sc config RpcEptMapper start= AUTO
sc config RpcLocator start= DEMAND
sc config RpcSs start= AUTO
sc config SamSs start= AUTO
sc config SCardSvr start= DEMAND
sc config Schele start= AUTO
sc config SCPolicySvc start= DEMAND
sc config SDRSVC start= DEMAND
sc config seclogon start= DEMAND
sc config SENS start= AUTO
sc config SensrSvc start= DEMAND
sc config SessionEnv start= DEMAND
sc config SharedAccess start= DISABLED
sc config ShellHWDetection start= DISABLED
sc config SNMPTRAP start= DEMAND
sc config Spooler start= DISABLED
sc config sppsvc start= AUTO
sc config sppuinotify start= DEMAND
sc config SSDPSRV start= DISABLED
sc config SstpSvc start= DEMAND
sc config StiSvc start= DEMAND
sc config StorSvc start= DEMAND
sc config swprv start= DEMAND
sc config SysMain start= DISABLED
sc config TabletInputService start= DISABLED
sc config TapiSrv start= DEMAND
sc config TBS start= DEMAND
sc config TermService start= DEMAND
sc config Themes start= AUTO
sc config THREADORDER start= DEMAND
sc config TrkWks start= AUTO
sc config TrustedInstaller start= DEMAND
sc config UI0Detect start= DEMAND
sc config UmRdpService start= DEMAND
sc config upnphost start= DEMAND
sc config UxSms start= AUTO
sc config VaultSvc start= DEMAND
sc config vds start= DEMAND
sc config VSS start= DEMAND
sc config W32Time start= DEMAND
sc config wbengine start= DEMAND
sc config WbioSrvc start= DEMAND
sc config wcncsvc start= DEMAND
sc config WcsPlugInService start= DEMAND
sc config WdiServiceHost start= DEMAND
sc config WdiSystemHost start= DEMAND
sc config WebClient start= DISABLED
sc config Wecsvc start= DEMAND
sc config wercplsupport start= DEMAND
sc config WerSvc start= DEMAND
sc config WinDefend start= DISABLED
sc config WinHttpAutoProxySvc start= DEMAND
sc config Winmgmt start= AUTO
sc config WinRM start= DEMAND
sc config Wlansvc start= DEMAND
sc config wmiApSrv start= DEMAND
sc config WMPNetworkSvc start= DEMAND
sc config WPCSvc start= DEMAND
sc config WPDBusEnum start= DEMAND
sc config wscsvc start= DISABLED
sc config WSearch start= AUTO
sc config wuauserv start= DISABLED
sc config wudfsvc start= DEMAND
sc config WwanSvc start= DEMAND
@pause

6. 优化开机.bat

批处理的代码啊。。这个没有啊

7. 怎样建立win7服务优化批处理.bat

@echo off
echo 服务优化正在处理,请稍等......
@echo
@pause
sc config ALG start= DEMAND
sc config AppMgmt start= DEMAND
sc config AudioEndpointBuilder start= AUTO
sc config Audiosrv start= AUTO
sc config BFE start= AUTO
sc config BITS start= AUTO
sc config Browser start= AUTO
sc config CertPropSvc start= DEMAND
sc config clr_optimization_v2.0.50727_32 start= DEMAND
sc config COMSysApp start= DEMAND
sc config CryptSvc start= AUTO
sc config DcomLaunch start= AUTO
sc config Dhcp start= AUTO
sc config Dnscache start= AUTO
sc config dot3svc start= DEMAND
sc config EapHost start= DEMAND
sc config EventSystem start= AUTO
sc config fdPHost start= DEMAND
sc config FDResPub start= DEMAND
sc config FontCache3.0.0.0 start= DEMAND
sc config gpsvc start= AUTO
sc config hidserv start= DEMAND
sc config hkmsvc start= DEMAND
sc config idsvc start= DEMAND
sc config IKEEXT start= AUTO
sc config IPBusEnum start= DEMAND
sc config KeyIso start= DEMAND
sc config LanmanServer start= AUTO
sc config LanmanWorkstation start= AUTO
sc config lltdsvc start= DEMAND
sc config lmhosts start= AUTO
sc config MMCSS start= AUTO
sc config MpsSvc start= AUTO
sc config msiserver start= DEMAND
sc config napagent start= DEMAND
sc config Netlogon start= DEMAND
sc config Netman start= DEMAND
sc config netprofm start= AUTO
sc config NetTcpPortSharing start= DISABLED
sc config NlaSvc start= AUTO
sc config NOD32krn start= AUTO
sc config nsi start= AUTO
sc config PlugPlay start= AUTO
sc config ProfSvc start= AUTO
sc config RasAuto start= DEMAND
sc config RasMan start= DEMAND
sc config RemoteAccess start= DISABLED
sc config RpcLocator start= DEMAND
sc config RpcSs start= AUTO
sc config SamSs start= AUTO
sc config SCardSvr start= DEMAND
sc config SCPolicySvc start= DEMAND
sc config SENS start= AUTO
sc config SharedAccess start= DISABLED
sc config ShellHWDetection start= AUTO
sc config slsvc start= AUTO
sc config SLUINotify start= DEMAND
sc config SNMPTRAP start= DEMAND
sc config SSDPSRV start= DEMAND
sc config SstpSvc start= DEMAND
sc config SysMain start= AUTO
sc config TapiSrv start= DEMAND
sc config TBS start= AUTO
sc config Themes start= AUTO
sc config THREADORDER start= DEMAND
sc config TrustedInstaller start= DEMAND
sc config upnphost start= DEMAND
sc config UxSms start= AUTO
sc config vds start= DEMAND
sc config W32Time start= AUTO
sc config wcncsvc start= DEMAND
sc config WcsPlugInService start= DEMAND
sc config WinHttpAutoProxySvc start= DEMAND
sc config Winmgmt start= AUTO
sc config Wlansvc start= DEMAND
sc config wmiApSrv start= DEMAND
sc config WMPNetworkSvc start= DEMAND
sc config wscsvc start= AUTO
sc config wuauserv start= AUTO
sc config wudfsvc start= DEMAND
@pause
echo.
echo.&echo 优化完成!任意键退出
echo. & pause>nul
把上面一段复制到记事本中保存为.bat文件即可

8. 几个电脑系统优化清除垃圾bat命令介绍

一.清理垃圾
在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去(黑色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“清除系统LJ.bat”,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!
二,优化开机
方法基本同第一,在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去(黑色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“优化开机.bat”,就完成了。记住后缀名一定要是.bat,ok!你的优化开机就这样制作成功了!

三,清理常见病毒、插件和恶意代码
方法基本也一样,基本同第一,在电脑屏幕的左下角按“开始→程序→附件→记事本”,把下面的文字复制进去(黑色部分),点“另存为”,路径选“桌面”,保存类型为“所有文件”,文件名为“杀毒.bat”,就完成了。记住后缀名一定要是.bat,ok!你的最简单好用的杀毒软件就这样制作成功了!

9. 谁给我写个史上最完整的电脑优化BAT!

@ ECHO.
@ ECHO.
@ ECHO. 说 明
@ ECHO --------------------------------------------------------------------------
@ ECHO IDE通道在这里看:设备管理器---IDE ATA/ATAPI控制器。一般可看到两个或多个。
@ ECHO 其属性内的“设备类型”,系统默认是“自动检测”,把它设为“无”可以提高
@ ECHO 开机速度。但如果以后要接硬盘或光驱,请记得把相应的通道改为“自动检测”,
@ ECHO 否则进系统后看不到它们。
@ ECHO --------------------------------------------------------------------------
@ ECHO.

::::::::::::::::::::::::::::::::::::常用环境变量:::::::::::::::::::::::::::::::::::::::::::
:: ALLUSERSPROFILE=C:\Documents and Settings\All Users
:: APPDATA=C:\Documents and Settings\Administrator\Application Data

::::::::::::::::::::::::::::::批处理提示完成等信息的方法:::::::::::::::::::::::::::::::::::
:: echo intAnswer=Msgbox("1.***" ^& vbNewLine ^& "" ^& vbNewLine ^& "2.***", ok, "提示:")>"%TEMP%\inform.vbs"
:: attrib +H "%TEMP%\inform.vbs"
:: "%TEMP%\inform.vbs"
:: del /a /f "%TEMP%\inform.vbs"
::::::::::::::::::::::::::::::::::创建快捷方式的方法:::::::::::::::::::::::::::::::::::::::
:: sPath代表批处理所运行的位置,待创快捷方式程序与批处理在同目录,否则要修改sPath后的路径::
:: 如用%sPath%文件夹名称\,若用Programs替换Desktop ,则在“开始--所有程序”中创建快捷方式::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: set sPath=%~dp0
:: echo On Error Resume Next>"%TEMP%\createcs.vbs"
:: echo attrib +H "%TEMP%\createcs.vbs"
:: echo Set Shell=CreateObject("WScript.Shell")>>"%TEMP%\createcs.vbs"
:: echo CsPath=Shell.SpecialFolders("Desktop")>>"%TEMP%\createcs.vbs"
:: echo Set link=Shell.CreateShortcut(CsPath ^& "\\程序名称.lnk")>>"%TEMP%\createcs.vbs"
:: echo link.description="位置:"^& "%sPath%">>"%TEMP%\createcs.vbs"
:: echo link.TargetPath="%sPath%程序名称.exe">>"%TEMP%\createcs.vbs"
:: echo link.WindowStyle=1 >>"%TEMP%\createcs.vbs"
:: echo link.WorkingDirectory=CsPath>>"%TEMP%\createcs.vbs"
:: echo link.Save>>"%TEMP%\createcs.vbs"
:: echo Set link2=Shell.CreateShortcut(CsPath ^& "\\程序名称2.lnk")>>"%TEMP%\createcs.vbs"
:: echo link2.description="位置:"^& "%sPath%">>"%TEMP%\createcs.vbs"
:: echo link2.TargetPath="%sPath%程序名称2.exe">>"%TEMP%\createcs.vbs"
:: echo link2.WindowStyle=1 >>"%TEMP%\createcs.vbs"
:: echo link2.WorkingDirectory=CsPath>>"%TEMP%\createcs.vbs"
:: echo link2.Save>>"%TEMP%\createcs.vbs"
:: "%TEMP%\createcs.vbs"
:: del /a /f "%TEMP%\createcs.vbs"
:::::::::::::::::::::::::注册批处理所在目录及其所有子目录下DLL的方法::::::::::::::::::::::
:: if exist "%SystemDrive%\RegKJ.tmp" del /q "%SystemDrive%\RegKJ.tmp"
:: dir /s /b "*.dll">>"%SystemDrive%\RegKJ.tmp"
:: dir /s /b "*.ocx">>"%SystemDrive%\RegKJ.tmp"
:: for /f "delims=*" %%i in (%SystemDrive%\RegKJ.tmp) do Regsvr32 /s "%%i"
:: del /q "%SystemDrive%\RegKJ.tmp"
::::::::::::::::::::::::::用批处理安装字体的方法-.\指批处理所在目录:::::::::::::::::::::::
:: REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL" /V "CheckedValue" /T "REG_DWORD" /D "1" /F>NUL
:: IF NOT EXIST "%SystemRoot%\FONTS\DESKTOP.INI" ECHO [.ShellClassInfo]>"%SystemRoot%\FONTS\DESKTOP.INI" && ECHO UICLSID={BD84B380-8CA2-1069-AB1D-08000948F534}>>"%SystemRoot%\FONTS\DESKTOP.INI"
:: ATTRIB +H +R "%SystemRoot%\FONTS\DESKTOP.INI"
:: ATTRIB +H +R "%SystemRoot%\FONTS"
:: /Y .\字体所在目录名称\*.ttf "%SystemRoot%\fonts\"
:: start explorer "%SystemRoot%\fonts\"
:: echo set WshShell=createobject("wscript.shell")>"%temp%\$tep$.vbs"
:: attrib +H "%temp%\$tep$.vbs"
:: echo WshShell.AppActivate "FONTS">>"%temp%\$tep$.vbs"
:: echo WshShell.sendkeys "%%{f4}">>"%temp%\$tep$.vbs"
:: "%temp%\$tep$.vbs"
:: del /a /f "%temp%\$tep$.vbs"
:::::::::::::::::::::::::::::::::::开始执行代码::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::路径解析::::::::::::::::::::::::::::::::::::::
set CurPath=%~dp0
set CurPath=%CurPath:~0,-1%
set CurPath=%CurPath:\=\\%
set ALLUSERSPROFILE=%ALLUSERSPROFILE:\=\\%
set APPDATA=%APPDATA:\=\\%
set CommonProgramFiles=%CommonProgramFiles:\=\\%
set ProgramFiles=%ProgramFiles:\=\\%
set SystemRoot=%SystemRoot:\=\\%
set windir=%windir:\=\\%
set ComSpec=%ComSpec:\=\\%
set Path=%Path:\=\\%
set HOMEPATH=%HOMEPATH:\=\\%
set USERPROFILE=%USERPROFILE:\=\\%
::::::::::::::::::::::::在以下部分中需用%CurPath%替换批处理运行的路径::::::::::::::
::::::::::::::::::::::::::::::::::在以下部分中需用%%1替换%1::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::导入注册表::::::::::::::::::::::::::::::::::
if exist "%TEMP%\加速_安装.reg" del /q "%TEMP%\加速_安装.reg"
echo Windows Registry Editor Version 5.00>>"%TEMP%\加速_安装.reg"
echo [HKEY_USERS\.DEFAULT\Control Panel\Desktop]>>"%TEMP%\加速_安装.reg"
echo "AutoEndTasks"="1">>"%TEMP%\加速_安装.reg"
echo [HKEY_USERS\.DEFAULT\Control Panel\Desktop]>>"%TEMP%\加速_安装.reg"
echo "HungAppTimeout"="0">>"%TEMP%\加速_安装.reg"
echo [HKEY_USERS\.DEFAULT\Control Panel\Desktop]>>"%TEMP%\加速_安装.reg"
echo "WaitToKillAppTimeout"="0">>"%TEMP%\加速_安装.reg"
echo [HKEY_USERS\.DEFAULT\Control Panel\Desktop]>>"%TEMP%\加速_安装.reg"
echo "MenuShowDelay"="0">>"%TEMP%\加速_安装.reg"
regedit /s "%TEMP%\加速_安装.reg"
del /q "%TEMP%\加速_安装.reg"
:: 修改IDE通道检测设备模式,不接设备的设置为无,提高XP启动速度
:: 建议在系统第二次重新启动检测到所有已经安装的IDE设备后运行
::
:: Date: 2006.10.28
::
:: Date:2008.04.02
@echo off 改变bootini值
bootcfg /timeout 0
rem 恢复boot.ini的各种属性
@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\*.*"
del /f /s /q "D:\My Documents\Cookies\*.txt"
echo 系统垃圾清理完成!!!!!!!!! OK
echo 清除我的文档记录!
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /V NORECENTDOCSHISTORY /T REG_DWORD /D 1 /F
@set _debug=
@echo %_debug% off & setlocal ENABLEDELAYEDEXPANSION
set hkey1=HKLM\SYSTEM\CurrentControlSet\Enum\PCIIDE\IDEChannel
set hkey2=HKLM\SYSTEM\CurrentControlSet\Control\Class
echo 检测开始.........
for /f "usebackq tokens=*" %%I in (`reg query %hkey1% ^| find /i "IDEChannel\"`) do call :_check "%%I"
@ ECHO.
@ ECHO.
@ ECHO.
echo IED通道检测设备模式设置完成。

goto :eof

:_check
::echo %1
set subkey=
for /f "usebackq tokens=3*" %%J in (`reg query %1 ^| find /i "driver"`) do set subkey=%%J
set DriverDesc=
for /f "usebackq tokens=3,4*" %%K in (`reg query "%hkey2%\%subkey%" /v DriverDesc ^| find /i "driverdesc"`) do set DriverDesc=%%K %%L 通道
reg query "%hkey2%\%subkey%" /v MasterDeviceType | find /i "0x0" > nul
if not %errorlevel%==1 goto _ChgMaster
echo “%DriverDesc%”的设备0上有设备存在。
goto _CheckSlave

:_ChgMaster
reg add "%hkey2%\%subkey%" /v UserMasterDeviceType /t REG_DWORD /d 3 /f >nul
echo “%DriverDesc%”的设备0上无设备,系统“检测方式”设置为无。

:_CheckSlave
reg query "%hkey2%\%subkey%" /v SlaveDeviceType | find /i "0x0" > nul
if not %errorlevel%==1 goto _ChgSlave
echo “%DriverDesc%”的设备1上有设备存在。
goto :eof

:_ChgSlave
reg add "%hkey2%\%subkey%" /v UserSlaveDeviceType /t REG_DWORD /d 3 /f >nul
echo “%DriverDesc%”的设备1上无设备,系统“检测方式”设置为无。
goto :eof

@ ECHO. 摘抄著名:束继涛 32240972

写成bat格式保证好用