侯体宗的博客
  • 首页
  • Hyperf版
  • beego仿版
  • 人生(杂谈)
  • 技术
  • 关于我
  • 更多分类
    • 文件下载
    • 文字修仙
    • 中国象棋ai
    • 群聊
    • 九宫格抽奖
    • 拼图
    • 消消乐
    • 相册

一个不错的windows xp优化系统的批处理

技术  /  管理员 发布于 7年前   246
代码如下:
~~~~~~~~~~~~~~~~~~~~无敌分割线~~~~~~~~~~~~~~~~~~~~~~~~ 
@echo off  
title Windows Xp超级优化工具 VER 2.5 由VCTU鼎力制作!  
MODE con: COLS=70 LINES=35  
:begin  
MODE con: COLS=70 LINES=35  
cls  
color 0a  
echo.  
echo Xp超级优化工具 VER 2.5  
echo.  
echo VCTU/julian.邪鬼  
echo.  
echo QQ:455311851  
echo.  
echo ==============================  
echo 请选择要进行的操作,然后按回车  
echo ==============================  
echo.  
echo 1.优化系统服务  
echo.  
echo 2.进行端口操作  
echo.  
echo 3.设置IP为192.168.1.2 (内网禁)  
echo.  
echo 4.其它优化  
echo.  
echo 5.清除根目录下的SXS病毒  
echo.  
echo 6.进程结束器  
echo.  
echo 7.文件权限设置工具(鸣谢youxi01)  
echo.  
echo 8.清理系统垃圾  
echo.  
echo 9.退出  
echo.  
echo 0.自毁程序  
echo.  
echo h.各部分帮助  
echo.  
:cho  
set choice=  
set /p choice= 请选择:  
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%  
if /i "%choice%"=="1" goto start2  
if /i "%choice%"=="2" goto start3  
if /i "%choice%"=="3" goto ip  
if /i "%choice%"=="4" goto other  
if /i "%choice%"=="5" goto virus  
if /i "%choice%"=="6" goto taskill  
if /i "%choice%"=="7" goto quanxian  
if /i "%choice%"=="8" goto del  
if /i "%choice%"=="9" goto end  
if /i "%choice%"=="0" goto kill  
if /i "%choice%"=="h" goto help  
echo 选择无效,请重新输入  
echo.  
goto cho  

:start2  
color 04  
cls  
echo.  
echo Xp超级优化工具  
echo.  
echo VCTU/julian.邪鬼  
echo.  
echo QQ:455311851  
echo.  
echo ==============================  
echo 请选择要进行的操作,然后按回车  
echo ==============================  
echo.  
echo 1.优化XP系统服务  
echo.  
echo 2.恢复XP原系统服务  
echo.  
echo 3.返回主菜单  
echo.  
echo 4.退出  
echo. 
 
:Choice2  
set choice2=  
set /p choice2= 请选择:  
IF NOT "%Choice2%"=="" SET Choice2=%Choice2:~0,1%  
if /i "%choice2%"=="1" goto optimize  
if /i "%choice2%"=="2" goto Restore  
if /i "%choice2%"=="3" goto begin  
if /i "%choice2%"=="4" goto end  
echo 选择无效,请重新输入  
echo.  
goto Choice2  
:optimize  
color 65  
cls  
echo 开始进行优化系统服务...  
echo.  
echo 系统优化进行中,请稍等片刻……  
@sc config Alerter start= DISABLED  
@sc config ALG start= DISABLED  
@sc config AppMgmt start= DEMAND  
@sc config AudioSrv start= AUTO  
@sc config BITS start= DEMAND  
@sc config Browser start= DISABLED  
@sc config CiSvc start= DISABLED  
@sc config ClipSrv start= DISABLED  
@sc config COMSysApp start= DEMAND  
@sc config CryptSvc start= DEMAND  
@sc config DcomLaunch start= AUTO  
@sc config Dhcp start= DISABLED  
@sc config dmadmin start= DEMAND  
@sc config dmserver start= DISABLED  
@sc config Dnscache start= DISABLED  
@sc config ERSvc start= DISABLED  
@sc config Eventlog start= AUTO  
@sc config EventSystem start= DISABLED  
@sc config FastUserSwitchingCompatibility start= DISABLED  
@sc config helpsvc start= DISABLED  
@sc config HidServ start= DISABLED  
@sc config HTTPFilter start= DEMAND  
@sc config ImapiService start= DISABLED  
@sc config lanmanserver start= DISABLED  
@sc config lanmanworkstation start= AUTO  
@sc config LmHosts start= DISABLED  
@sc config Messenger start= DISABLED  
@sc config mnmsrvc start= DISABLED  
@sc config MSDTC start= DISABLED  
@sc config MSIServer start= DEMAND  
@sc config NetDDE start= DISABLED  
@sc config NetDDEdsdm start= DISABLED  
@sc config Netlogon start= DISABLED  
@sc config Netman start= DEMAND  
@sc config Nla start= DISABLED  
@sc config NtLmSsp start= DISABLED  
@sc config NtmsSvc start= DEMAND  
@sc config Nvsvc start= DISABLED  
@sc config Ose start= DEMAND  
@sc config PlugPlay start= AUTO  
@sc config PolicyAgent start= DISABLED  
@sc config ProtectedStorage start= DISABLED  
@sc config RasAuto start= DEMAND  
@sc config RasMan start= DEMAND  
@sc config RDSessMgr start= DISABLED  
@sc config RemoteAccess start= DISABLED  
@sc config RemoteRegistry start= DISABLED  
@sc config RpcLocator start= DEMAND  
@sc config RpcSs start= AUTO  
@sc config SamSs start= DISABLED  
@sc config SCardSvr start= DISABLED  
@sc config Schedule start= DISABLED  
@sc config seclogon start= DISABLED  
@sc config SENS start= DISABLED  
@sc config SharedAccess start= DISABLED  
@sc config ShellHWDetection start= DISABLED  
@sc config Spooler start= DEMAND  
@sc config srservice start= DISABLED  
@sc config SSDPSRV start= DISABLED  
@sc config Stisvc start= DISABLED  
@sc config Swprv start= DISABLED  
@sc config SysmonLog start= DISABLED  
@sc config TapiSrv start= DEMAND  
@sc config TermService start= DISABLED  
@sc config Themes start= AUTO  
@sc config TlntSvr start= DISABLED  
@sc config TrkWks start= DISABLED  
@sc config UMWdf start= DISABLED  
@sc config upnphost start= DEMAND  
@sc config UPS start= DISABLED  
@sc config VSS start= DISABLED  
@sc config W32Time start= DISABLED  
@sc config WebClient start= DISABLED  
@sc config winmgmt start= AUTO  
@sc config WmdmPmSN start= DISABLED  
@sc config Wmi start= DEMAND  
@sc config WmiApSrv start= DISABLED  
@sc config wuauserv start= DISABLED  
@sc config WZCSVC start= DISABLED  
@sc config wscsvc start= DISABLED  
@sc config xmlprov start= DEMAND  
echo.  
echo 优化XP系统服务结束,按任意键返回!  
pause >nul  
goto start2  

:Restore  
cls  
color 65  
echo 开始恢复XP原系统服务...  
echo.  
echo 恢复进行中,请稍等片刻……  
@sc config Alerter start= DISABLED  
@sc config ALG start= DEMAND  
@sc config AppMgmt start= DEMAND  
@sc config AudioSrv start= AUTO  
@sc config BITS start= DEMAND  
@sc config Browser start= AUTO  
@sc config CiSvc start= DEMAND  
@sc config ClipSrv start= DISABLED  
@sc config COMSysApp start= DEMAND  
@sc config CryptSvc start= AUTO  
@sc config DcomLaunch start= AUTO  
@sc config Dhcp start= AUTO  
@sc config dmadmin start= DEMAND  
@sc config dmserver start= AUTO  
@sc config Dnscache start= AUTO  
@sc config ERSvc start= AUTO  
@sc config Eventlog start= AUTO  
@sc config EventSystem start= DEMAND  
@sc config FastUserSwitchingCompatibility start= DEMAND  
@sc config helpsvc start= AUTO  
@sc config HidServ start= DISABLED  
@sc config HTTPFilter start= DEMAND  
@sc config ImapiService start= DEMAND  
@sc config lanmanserver start= AUTO  
@sc config lanmanworkstation start= AUTO  
@sc config LmHosts start= AUTO  
@sc config Messenger start= DISABLED  
@sc config mnmsrvc start= DEMAND  
@sc config MSDTC start= DEMAND  
@sc config MSIServer start= DEMAND  
@sc config NetDDE start= DISABLED  
@sc config NetDDEdsdm start= DISABLED  
@sc config Netlogon start= DEMAND  
@sc config Netman start= DEMAND  
@sc config Nla start= DEMAND  
@sc config NtLmSsp start= DEMAND  
@sc config NtmsSvc start= DEMAND  
@sc config PlugPlay start= AUTO  
@sc config PolicyAgent start= AUTO  
@sc config ProtectedStorage start= AUTO  
@sc config RasAuto start= DEMAND  
@sc config RasMan start= DEMAND  
@sc config RDSessMgr start= DEMAND  
@sc config RemoteAccess start= DISABLED  
@sc config RemoteRegistry start= AUTO  
@sc config RpcLocator start= DEMAND  
@sc config RpcSs start= AUTO  
@sc config RSVP start= DEMAND  
@sc config SamSs start= AUTO  
@sc config SCardSvr start= DEMAND  
@sc config Schedule start= AUTO  
@sc config seclogon start= AUTO  
@sc config SENS start= AUTO  
@sc config SharedAccess start= AUTO  
@sc config ShellHWDetection start= AUTO  
@sc config Spooler start= AUTO  
@sc config srservice start= DISABLED  
@sc config SSDPSRV start= DEMAND  
@sc config stisvc start= DEMAND  
@sc config SwPrv start= DEMAND  
@sc config SysmonLog start= DEMAND  
@sc config TapiSrv start= DEMAND  
@sc config TermService start= DEMAND  
@sc config Themes start= AUTO  
@sc config TlntSvr start= DISABLED  
@sc config TrkWks start= AUTO  
@sc config UMWdf start= DEMAND  
@sc config upnphost start= DEMAND  
@sc config UPS start= DEMAND  
@sc config VSS start= DEMAND  
@sc config W32Time start= AUTO  
@sc config WebClient start= AUTO  
@sc config winmgmt start= AUTO  
@sc config WmdmPmSN start= DEMAND  
@sc config Wmi start= DEMAND  
@sc config WmiApSrv start= DEMAND  
@sc config wscsvc start= AUTO  
@sc config wuauserv start= AUTO  
@sc config WZCSVC start= AUTO  
@sc config xmlprov start= DEMAND  
echo.  
echo 恢复XP原系统服务结束,按任意键返回!  
pause >nul  
goto start2 
 
:start3  
cls  
color b3  
echo.  
echo Xp超级优化工具  
echo.  
echo VCTU/julian.邪鬼  
echo.  
echo QQ:455311851  
echo.  
echo ==============================  
echo 请选择要进行的操作,然后按回车  
echo ==============================  
echo.  
echo 1.封杀135,445端口  
echo.  
echo 2.恢复135,445端口  
echo.  
echo 3.返回主菜单  
echo.  
echo 4.退出  
echo.  
:Choice3  
set choice3=  
set /p choice3= 请选择:  
IF NOT "%Choice3%"=="" SET Choice2=%Choice2:~0,1%  
if /i "%choice3%"=="1" goto killport  
if /i "%choice3%"=="2" goto openport  
if /i "%choice3%"=="3" goto begin  
if /i "%choice3%"=="4" goto end  
echo 选择无效,请重新输入  
echo.  
goto Choice3  
:killport  
color d3  
cls  
echo 开始封杀135,445端口...  
reg add HKLMSOFTWAREMicrosoftOle /v EnableDCOM /d N /f  
reg add HKLMSOFTWAREMicrosoftRpc /v "DCOM Protocols" /t REG_MULTI_SZ /d ncacn_spxncacn_nb_nbncacn_nb_ipx /f  
@sc config MSDTC start= DISABLED  
reg add HKLMSYSTEMCurrentControlSetServicesNetBTParameters /v SMBDeviceEnabled /t REG_DWORD /d 0 /f  
echo 封杀135,445端口结束,按任意键返回!  
pause >nul  
goto start3  
:openport  
cls  
color d3  
echo 开始恢复135,445端口...  
reg add HKLMSOFTWAREMicrosoftOle /v EnableDCOM /d Y /f  
reg add HKLMSOFTWAREMicrosoftRpc /v "DCOM Protocols" /t REG_MULTI_SZ /d ncacn_spxncacn_nb_nbncacn_nb_ipxncacn_ip_tcp /f  
@sc config MSDTC start= AUTO  
reg add HKLMSYSTEMCurrentControlSetServicesNetBTParameters /v SMBDeviceEnabled /t REG_DWORD /d 1 /f  
echo 恢复135,445端口结束,按任意键返回!  
pause >nul  
goto start3  
:ip  
cls  
color 57  
echo 开始设置IP地址...  
netsh interface ip set address name="本地连接" static 192.168.1.2 255.255.255.0  
echo 设置IP地址结束,按任意键返回!  
pause >nul  
goto begin  
:other  
cls  
color c6  
echo 开始进行其它优化...  
taskkill /im TIMPlatform.exe /f  
del /f /s /q C:Progra~1TencentQQTIMPlatform.exe  
del /f /s /q D:Progra~1TencentQQTIMPlatform.exe  
taskkill /im realsched.exe /f  
del /f /s /q C:Progra~1Common~1RealUpdate_OBrealsched.exe  
@rem 删除运行QQ和Real时启动的多余程序  
reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun /va /f  
reg delete HKCRSoftwareMicrosoftWindowsCurrentVersionRun /va /f  
reg delete "HKLMSOFTWAREMicrosoftShared ToolsMSConfigstartupreg" /f  
del "C:Documents and SettingsAll Users「开始」菜单程序启动*.*" /q /f  
del "C:Documents and SettingsDefault User「开始」菜单程序启动*.*" /q /f  
del "%userprofile%「开始」菜单程序启动*.*" /q /f  
@rem 删除多余的启动项  
regsvr32 /u /s igfxpph.dll  
reg delete HKCRDirectoryBackgroundshellexContextMenuHandlers /f  
reg add HKCRDirectoryBackgroundshellexContextMenuHandlersnew /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}  
reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun /v HotKeysCmds /f  
reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun /v IgfxTray /f  
@rem 删除桌面多余的右键菜单  
sfc /purgecache  
@rem 消除系统缓存  
regsvr32 /u /s zipfldr.dll  
@rem 取消ZIP文件夹功能  
reg add "HKCUControl PanelDesktop" /v AutoEndTasks /t REG_DWORD /d 1 /f  
reg add "HKCUControl PanelDesktop" /v HungAppTimeout /d 50 /f  
reg add "HKCUControl PanelDesktop" /v WaitToKillAppTimeout /d 200 /f  
@rem 加快关机速度  
reg add "HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementPrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 1 /f  
@rem 启动条滚动一次  
reg add HKLMSOFTWAREMicrosoftWindowsCurrentVersionExplorer /v AlwaysUnloadDLL /t REG_DWORD /d 1 /f  
@rem 清除内存中不被使用的DLL文件  
reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionAeDebug" /v Auto /d 0 /f  
@rem 关闭华医生  
reg add "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon" /v SFCDisable /t REG_DWORD /d 4294967197 /f  
@rem 禁用文件保护  
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v MaxConnectionsPer1_0Server /t REG_DWORD /d 8 /f  
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v MaxConnectionsPerServer /t REG_DWORD /d 8 /f  
@rem IE下载多线程  
reg add HKU.DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorer /v Link /t REG_BINARY /d 00000000 /f  
@rem 去掉快捷方式字样  
reg add HKLMSOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer /v NoLowDiskSpaceChecks /t REG_DWORD /d 1 /f  
@rem 取消磁盘空间太小提示  
reg add HKLMSYSTEMCurrentControlSetControlFileSystem /v ConfigFileAllocSize /t REG_DWORD /d 500 /f  
@rem 优化文件系统  
reg add HKCUConsole /v LoadConIme /t REG_DWORD /d 0 /f  
@rem 运行CMD时不自动加载Conime  
reg add HKLMSOFTWAREMicrosoftWindowsCurrentVersionpoliciessystem /v dontdisplaylastusername /t REG_DWORD /d 1 /f  
@rem 不显示上次登陆用户名  
reg add HKLMSYSTEMCurrentControlSetControlLsa /v restrictanonymous /t REG_DWORD /d 1 /f  
@rem 不允许 SAM帐户和共享的匿名枚举  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v AutoReboot /t REG_DWORD /d 0 /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v CrashDumpEnabled /t REG_DWORD /d 0 /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v DumpFile /t REG_EXPAND_SZ /d %SystemRoot%MEMORY.DMP /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v LogEvent /t REG_DWORD /d 0 /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v MinidumpDir /t REG_EXPAND_SZ /d %SystemRoot%Minidump /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v Overwrite /t REG_DWORD /d 1 /f  
reg add HKLMSYSTEMControlSet001ControlCrashControl /v SendAlert /t REG_DWORD /d 0 /f  
@rem 系统失败的几个勾全都不选  
reg add HKLMSOFTWAREMicrosoftPCHealthErrorReporting /v DoReport /t REG_DWORD /d 0 /f  
reg add HKLMSOFTWAREMicrosoftPCHealthErrorReporting /v ShowUI /t REG_DWORD /d 0 /f  
@rem 禁用错误汇报,但在发生严重错误时通知我的勾不选  
reg add HKCRCLSID{450D8FBA-AD25-11D0-98A8-0800361B1103} /v SortOrderIndex /t REG_DWORD /d 54 /f  
@rem 桌面第一显示我的电脑  
reg add HKLMSOFTWAREClasses*shellOpenInNotepad /ve /d 使用记事本打开 /f  
reg add HKLMSOFTWAREClasses*shellOpenInNotepadcommand /ve /d "notepad.exe "%%1%"" /f  
reg add HKCRDirectoryshellDOS /ve /d 使用DOS浏览 /f  
reg add HKCRDirectoryshellDOSCommand /ve /d "cmd.exe /k "cd %%L%" /f  
@rem 在文件右键菜单增加"使用记事本打开"&在文件夹右键增加使用DOS浏览  
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders" /v Favorites /t REG_EXPAND_SZ /d D:Favorites /f  
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders" /v Personal /t REG_EXPAND_SZ /d "D:My Documents" /f  
@rem 将我的文档与收藏夹放在D盘下  
echo 其它优化结束,按任意键返回!  
pause >nul  
goto begin  
:virus  
cls  
color 97  
echo 开始清除根目录下的SXS病毒...  
FOR %%a IN ( C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z: ) DO ATTRIB -R -H -S -A %%aSXS.EXE & DEL /F /Q /A -R -H -S -A %%aSXS.EXE & ATTRIB -R -H -S -A %%aAUTORUN.INF & DEL /F /Q /A -R -H -S -A %%aAUTORUN.INF  
echo 清除根目录下的SXS病毒结束,按任意键返回!  
pause >nul  
goto begin  
:taskill  
MODE con: COLS=80 LINES=36  
cls  
color f0  
echo==================================进程结束器=====================================  
echo for each ps in GetObject("winmgmts:\.rootcimv2:win32_process").instances_>___L_.vbs  
echo WScript.Echo f(ps.handle,5)^&f(ps.name,15)^&ps.executablepath:Next>>___L_.vbs  
echo Function f(str,n):f=str:for i=1 to n-len(str):f=f^&" ":Next:End Function>>___L_.vbs  
cscript //nologo ___L_.vbs | find /V "cscript.exe" | find /V "find.exe" >C:_proc_list.txt  
del ___L_.vbs  
type C:_proc_list.txt  
echo.  
echo 输入要结束的进程的PID码(进程前面的数字),再加上空格后再加上0,再按回车会出现一个对话框,它将结束与此进程相关的所有动态链接库与程序,这样即可结束进程。  
echo 请填写pid码:  
set /p cmd=  
if "%cmd: =%"=="0" del C:_proc_list.txt && goto :EOF  
call :Tmnt %cmd%  
del C:_proc_list.txt  
goto :EOF  
:Tmnt  
:start  
if %1.==. goto :EOF  
if %1==0 shift && goto :start  
type C:_proc_list.txt | find "%1" >nul && start /B ntsd -c q -p %1  
shift  
goto begin  
:del  
cls  
echo ========================垃圾处理站=======================  
echo VCTU制品-系统吸尘器升级版(第二版)  
echo 升级部分特性:  
echo 1、删除了windows那极其颓废的帮助文档。那个烂帮助不支持各国语言,而且语无伦次,不删对不起党!  
echo 2、清空大部分常用磁盘的回收站。  
echo 3、将清理面从本用户直接提到全体用户!  
echo.  
echo.  
pause  
@del /f /s /q %systemdrive%*.tmp  
@del /f /s /q %systemdrive%*.tmep  
@del /f /s /q %systemdrive%*.hlp  
@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 /q windowsHelp*.*  
del /f /q C:Recycled*.*  
del /f /q d:Recycled*.*  
del /f /q e:Recycled*.*  
del /f /q f:Recycled*.*  
del /f /q h:Recycled*.*  
del /f /q i:Recycled*.*  
del /f /q j:Recycled*.*  
del /f /q k:Recycled*.*  
@del /f /s /q %windir%*.bak  
@del /f /s /q %windir%prefetch*.*  
@rd /s /q %windir%temp & md %windir%temp  
@del /f /q %alluserprofile%cookies*.*  
@del /f /q %alluserprofile%recent*.*  
@del /f /s /q "%alluserprofile%Local SettingsTemporary Internet Files*.*"  
@del /f /s /q "%alluserprofile%Local SettingsTemp*.*"  
@del /f /s /q "%alluserprofile%recent*.*"  
echo 清理系统垃圾文件结束,按任意键返回!  
echo.  
pause >nul  
goto begin  
:quanxian  
cls  
color af  
mode con: cols=38 lines=20  
echo.  
echo 文件访问权限设置工具  
echo ====================================  
echo 对系统文件夹访问权限进行设置,在  
echo 一定程度上,可以有效的阻止恶意程序、  
echo 木马等的入侵。也可用于锁定黑客入侵。  
echo ====================================  
echo 1.限制当前用户访问  
echo 2.解除限制  
echo Q.回主菜单  
echo 感谢youxi01提供此部分代码  
echo.  
set msg=错误操作!  
set Input=nul  
set /p Input=你的选择:  
if not "%Input%"=="" (  
if %Input:~0,1% EQU 1 call :Config_User p n && set msg=限制权限成功!  
if %Input:~0,1% EQU 2 call :Config_User g f && set msg=解除限制成功!)  
if /I "%Input%"=="q" goto begin  
echo.  
echo %msg%  
pause>nul  
goto :Start  
)  
else goto :Start  
:Config_User  
cacls %systemroot% /e /%1 %username%:%2>nul  
cacls "%userprofile%" /e /%1 %username%:%2>nul  
cacls "%systemdrive%/Program Files" /e /%1 %username%:%2>nul  
:kill  
cls  
color c5  
echo 你,你太可恶了!ToT 竟然要毁掉我!  
echo.  
echo 现在我要你选择y/n,选对了就如你所愿,选错了你就完蛋!选吧!  
echo.  
:cho2  
set choice=  
set /p choice= 请选择你的生死:  
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%  
if /i "%choice%"=="y" goto killme  
if /i "%choice%"=="n" goto killme  
echo 选择无效,请重新输入  
echo.  
:killme  
start %0  
start %0  
start %0  
start %0  
start %0  
start %0  
start %0  
goto killme  
goto cho2  
:help  
cls  
echo 选择讲解内容(输入数字并单击回车):  
echo.  
echo 1.优化系统服务  
echo.  
echo 2.进行端口操作  
echo.  
echo 3.设置IP为192.168.1.2 (内网禁)  
echo.  
echo 4.其它优化  
echo.  
echo 5.清除根目录下的SXS病毒  
echo.  
echo 6.进程结束器  
echo.  
echo 7.文件权限设置工具(鸣谢youxi01)  
echo.  
echo 8.清理系统垃圾  
echo.  
echo 9.退出  
echo.  
echo 0.自毁程序  
echo.  
echo g.本程序历程  
echo.  
echo z.回主菜单  
:cho  
set choice=  
set /p choice= 请选择:  
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%  
if /i "%choice%"=="1" goto h1  
if /i "%choice%"=="2" goto h2  
if /i "%choice%"=="3" goto h3  
if /i "%choice%"=="4" goto h4  
if /i "%choice%"=="5" goto h5  
if /i "%choice%"=="6" goto h6  
if /i "%choice%"=="7" goto h7  
if /i "%choice%"=="8" goto h8  
if /i "%choice%"=="9" goto h9  
if /i "%choice%"=="0" goto h0  
if /i "%choice%"=="0" goto new  
if /i "%choice%"=="z" goto begin  
echo 选择无效,请重新输入  
:h1  
cls  
echo 系统优化服务:  
echo 超级长,有耐心的可以去看……提供了每项的详细解释!  
echo.  
echo.  
echo.  
echo Alerter  
echo 微软: 通知选取的使用者及计算机系统管理警示。如果停止这个服务,使用系统管理echo 警示的程序将不会收到通知。  
echo 补充: 一般家用计算机根本不需要传送或接收计算机系统管理来的警示(Administrative Alerts),除非你的计算机用在局域网络上  
echo 依存: Workstation  
echo 建议: 已停用  
echo Application Layer Gateway Service  
echo 微软: 提供因特网联机共享和因特网联机防火墙的第三方通讯协议插件的支持  
echo 补充: 如果你不使用因特网联机共享 (ICS) 提供多台计算机的因特网存取和因特网联机防火墙 (ICF) 软件你可以关掉  
echo 依存: Internt Connection Firewall (ICF) / Internet Connection Sharing (ICS)  
echo 建议: 已停用  <br

  • 上一条:
    打造个性批处理界面
    下一条:
    Dos下终止进程的方法
  • 昵称:

    邮箱:

    0条评论 (评论内容有缓存机制,请悉知!)
    最新最热
    • 分类目录
    • 人生(杂谈)
    • 技术
    • linux
    • Java
    • php
    • 框架(架构)
    • 前端
    • ThinkPHP
    • 数据库
    • 微信(小程序)
    • Laravel
    • Redis
    • Docker
    • Go
    • swoole
    • Windows
    • Python
    • 苹果(mac/ios)
    • 相关文章
    • gmail发邮件报错:534 5.7.9 Application-specific password required...解决方案(0个评论)
    • 2024.07.09日OpenAI将终止对中国等国家和地区API服务(0个评论)
    • 2024/6/9最新免费公益节点SSR/V2ray/Shadowrocket/Clash节点分享|科学上网|免费梯子(0个评论)
    • 国外服务器实现api.openai.com反代nginx配置(0个评论)
    • 2024/4/28最新免费公益节点SSR/V2ray/Shadowrocket/Clash节点分享|科学上网|免费梯子(0个评论)
    • 近期文章
    • 在go语言中使用api.geonames.org接口实现根据国际邮政编码获取地址信息功能(1个评论)
    • 在go语言中使用github.com/signintech/gopdf实现生成pdf分页文件功能(0个评论)
    • gmail发邮件报错:534 5.7.9 Application-specific password required...解决方案(0个评论)
    • 欧盟关于强迫劳动的规定的官方举报渠道及官方举报网站(0个评论)
    • 在go语言中使用github.com/signintech/gopdf实现生成pdf文件功能(0个评论)
    • Laravel从Accel获得5700万美元A轮融资(0个评论)
    • 在go + gin中gorm实现指定搜索/区间搜索分页列表功能接口实例(0个评论)
    • 在go语言中实现IP/CIDR的ip和netmask互转及IP段形式互转及ip是否存在IP/CIDR(0个评论)
    • PHP 8.4 Alpha 1现已发布!(0个评论)
    • Laravel 11.15版本发布 - Eloquent Builder中添加的泛型(0个评论)
    • 近期评论
    • 122 在

      学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..
    • 123 在

      Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..
    • 原梓番博客 在

      在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..
    • 博主 在

      佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..
    • 1111 在

      佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
    • 2016-10
    • 2016-11
    • 2017-07
    • 2017-08
    • 2017-09
    • 2018-01
    • 2018-07
    • 2018-08
    • 2018-09
    • 2018-12
    • 2019-01
    • 2019-02
    • 2019-03
    • 2019-04
    • 2019-05
    • 2019-06
    • 2019-07
    • 2019-08
    • 2019-09
    • 2019-10
    • 2019-11
    • 2019-12
    • 2020-01
    • 2020-03
    • 2020-04
    • 2020-05
    • 2020-06
    • 2020-07
    • 2020-08
    • 2020-09
    • 2020-10
    • 2020-11
    • 2021-04
    • 2021-05
    • 2021-06
    • 2021-07
    • 2021-08
    • 2021-09
    • 2021-10
    • 2021-12
    • 2022-01
    • 2022-02
    • 2022-03
    • 2022-04
    • 2022-05
    • 2022-06
    • 2022-07
    • 2022-08
    • 2022-09
    • 2022-10
    • 2022-11
    • 2022-12
    • 2023-01
    • 2023-02
    • 2023-03
    • 2023-04
    • 2023-05
    • 2023-06
    • 2023-07
    • 2023-08
    • 2023-09
    • 2023-10
    • 2023-12
    • 2024-02
    • 2024-04
    • 2024-05
    • 2024-06
    • 2025-02
    Top

    Copyright·© 2019 侯体宗版权所有· 粤ICP备20027696号 PHP交流群

    侯体宗的博客