电脑知识 2010-10-08 14:09:03 阅读66 评论0 字号:大中小 订阅
mode con cols=85 lines=30
title win7终级批处理 V 1.0.2
@ ECHO OFF
cls
@ ECHO ===============================================================================
@ ECHO 协助:此文件为黯淡个人写作,仅供群:60882421(已经加满)使用!
@ ECHO 批注:原群已满,请加入四群群:103539833
@ ECHO :,请加入五群:109570884
@ ECHO 简绍:为方便组成员使用编辑,本人QQ:1052165538
@ ECHO 声明:现处于学习阶段,如果有注释选项,请谨慎使用!
@ ECHO 联系:如果有意见,请联系我们,本人msn:yanggongzuo1107@live.cn
@ ECHO ******转作 :请注明出处*******
@ ECHO 需要的 免费东西 以及经常用的请到163我的网盘
@ ECHO http://www.163pan.com/home/83564
@ ECHO ==============================================================================
:main
ECHO 1 - 清理win7、vista系统垃圾 2 - 修复打开图片缓慢
ECHO 3 - 重启explorer进程 4 - 打开系统资源监视器
ECHO 5 - 清除任务栏历史图标 6 - 去掉快捷方式小箭头(已经修改)
ECHO 7 - 恢复快捷方式小箭头 8 - 优化系统服务 [ 慎 ]
ECHO 9 - 清除图片位置冗余文件夹 0 - 退出
ECHO 10 - 修改文件名称 11 - 电脑关机操作
ECHO 12 - 硬盘转格式ntfs 13 -清理xp系统垃圾
ECHO 14 - 其他信息以及需要请选择这里 15 - 删除旧的Windows系统
ECHO 16 - 整理磁盘 17 - 卡巴无限试用(属于测试阶段)
set choice=
set /p choice=请输入选择:
if /i '%choice%'=='1' goto a
if /i '%choice%'=='2' goto b
if /i '%choice%'=='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%'=='10' goto l
if /i '%choice%'=='11' goto k
if /i '%choice%'=='12' goto j
if /i '%choice%'=='14' goto x
if /i '%choice%'=='13' goto m
if /i '%choice%'=='15' goto n
if /i '%choice%'=='16' goto o
if /i '%choice%'=='17' goto p
if /i '%choice%'=='0' goto end
:p
@ ECHO 本软件属于测试版,使用上是没有问题的!
echo 欢迎使用 暗淡一辈子团队 kav试用激活程序!
(
ECHO %username% 感谢你使用我们团队的作品
ECHO 有些批处理,比如定量修改大量文件名称,并未一次写完!
ECHO 请联系我们![团队:师院暗淡一辈子]{群:60882421}
)|msg %username% /time 30
pause
@reg delete HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\LicStorage /f
@reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\RNG /f
@reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificates /f
@echo 已经成功清除了系统里旧的卡巴注册信息
@echo 现在你可以重新打开卡巴界面激活一个月试用授权,此程序可以按任意键退出......
@pause >nul
echo 欢迎使用 暗淡一辈子团队 kav试用激活程序!
(
ECHO %username% 感谢你使用我们团队的作品
ECHO 在此感激大家对我们的支持,携带本人以及202宿舍成员感谢大家{本人:杨小左}!
ECHO 请联系我们![团队:师院暗淡一辈子]{群:60882421}
)|msg %username% /time 30
cls
goto main
:o
set /p num="请输入你要检测的磁盘盘符,比如C,不需要带冒号,要全盘检测请输入数字0:"
if "%num%"=="" goto o
set num=%num:~0,1%
if "%num%"=="0" goto 1_0
@echo y|chkdsk /r /x %num%:
@pause
cls
goto mian
:1_0
for %%1 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 (if exist %%1 ECHO Y|chkdsk %%1 /r /x)
@pause
cls
goto mian
:n
ECHO 请确认你的操作!这是删除旧的window系统!
pause >nul
cls
if not exist %systemroot%\Windows.OLD goto exit_1
rd/S/Q $Windows.OLD
(
ECHO %username% 感谢你使用我们团队的作品
ECHO 这是删除旧的windows 文件系统 属于测试阶段,已经成功!
ECHO 请联系我们![团队:师院暗淡一辈子]{群:60882421}
)|msg %username% /time 30
cls
goto main
: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 /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 清除系统xp完成! -
echo. & pause -
cls
goto main
:x
(
ECHO %username% 感谢你使用我们团队的作品
ECHO 有些批处理,比如定量修改大量文件名称,并未一次写完!
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 正在清理系统盘下备份文件...
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 正在清理系统维护等操作产生的临时文件...
rd /s /q %windir%\temp md %windir%\temp >nul 2>nul
ECHO 正在清理当前用户的Cookies(IE)...
del /f /q %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.* >nul 2>nul
ECHO 正在清理系统盘下临时文件,可能较慢,请稍等...
del /f /s /q %systemdrive%\*.tmp >nul 2>nul
del /f /s /q %systemdrive%\*._mp >nul 2>nul
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%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" >nul 2>nul
cls
goto main
:b
cls
ECHO 正在修复,请稍等...
del %windir%\system32\spool\drivers\color\CalibratedDisplayProfile-?.icc >nul 2>nul
ping localhost -n 4 >nul 2>nul
cls
goto main
:c
cls
ECHO explorer进程重启中,请稍等...
taskkill /f /im Explorer.exe >nul 2>nul
ping localhost -n 4 >nul 2>nul
start "explorer.exe" "%windir%\explorer.exe"
goto main
:d
start "resmon.exe" "%windir%\System32\perfmon.exe" /res
exit
:e
cls
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f
goto c
:f
cls
echo Windows Registry Editor Version 5.00 >1.reg
echo. >>1.reg
echo [HKEY_CLASSES_ROOT\lnkfile] >>1.reg
echo "IsShortcut"=- >>1.reg
echo [HKEY_CLASSES_ROOT\piffile] >>1.reg
echo "IsShortcut"=- >>1.reg
regedit /s/c 1.reg
echo 正在去消可恶的小箭头,请你稍等啊。嘿嘿.........
ping 127.0.0.1 -n 3 >nul
taskkill /im explorer.exe /f >nul 2>nul
del /s/f/q 1.reg >nul 2>nul
start explorer.exe
echo 小箭头取消完毕。。正在退出。。。。
del 1.reg
goto c
:g
cls
@ECHO Windows Registry Editor Version 5.00>>D:\tmp.reg
@ECHO [HKEY_CLASSES_ROOT\piffile]>>D:\tmp.reg
@ECHO "IsShortcut"="">>D:\tmp.reg
@ECHO [HKEY_CLASSES_ROOT\lnkfile]>>D:\tmp.reg
@ECHO "IsShortcut"="">>D:\tmp.reg
@ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]>>D:\tmp.reg
regedit/s D:\tmp.reg
del D:\tmp.reg
del %windir%\Empty.ico
goto c
:h
cls
sc config AxInstSV= demand
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= demand
sc config Browser start= demand
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= demand
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 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 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= demand
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= demand
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= demand
sc config wudfsvc start= demand
goto main
:i
cls
ECHO Windows Registry Editor Version 5.00>>d:\temp.reg
ECHO [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\Images]>>d:\temp.reg
ECHO [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\Images]>>d:\temp.reg
regedit /s d:\temp.reg
del d:\temp.reg
goto main
:l
@ECHO 请选择你需要修改的格式(如果是不同扩展名之间修改修改请选择0)
@ECHO 注意尽量在同一文件夹内修改,不然需要具体路径!
@ECHO 1.文件为txt格式转换
@ECHO 2.文件为jpg格式转换
@ECHO 3.文件为doc格式转换
@ECHO 4.文件为MP3格式转换
@ECHO 0.不同扩展名称之间转换(如123.txt==》》456.jpg)
set /p name_1=" 选择你需要的:"
if "%name_1%"=="1" goto ren_1
if "%name_1%"=="2" goto ren_2
if "%name_1%"=="3" goto ren_3
if "%name_1%"=="4" goto ren_4
if "%name_1%"=='0" goto ren_0
if not "%name_1%"==1 goto error_1
:ren_1
set /p chioce="确认你要修改的文件的原名字(包含后缀):"
set /p r1="你修改后的名字:"
ren "%chioce%" "%r1%".txt
pause
:ren_2
set /p chioce="确认你要修改的文件的原名字(包含后缀):"
set /p r1="你修改后的名字:"
ren "%chioce%" "%r1%".jpg
pause
:ren_3
set /p chioce="确认你要修改的文件的原名字(包含后缀):"
set /p r1="你修改后的名字:"
ren "%chioce%" "%r1%".doc
pause
:ren_4
set /p chioce="确认你要修改的文件的原名字(包含后缀):"
set /p r1="你修改后的名字:"
ren "%chioce%" "%r1%".mp3
pause
:ren_0
set /p chioce="确认你要修改的文件的原名字(包含后缀):"
set /p r1="你修改后的名字(请包涵扩展名字):"
ren "%chioce%" "%r1%"
pause
:error_1
@ECHO 你选择有误,或者你选则了退出。。.
pause
goto main
:k
@ECHO 请选择你的操作:
@ECHO 1,关机操作:自己选择时间关机,输入自己的关机时间
@ECHO 2,取消关机:取消进行中的关机,不需要输入任何参数
set /p choice="请确认你的选则:"
if "%choice%"=="1" goto st_1
if "%choice%"=="2" goto st_2
if not "%choice%"=="1" goto error
:error
@ECHO 你选择有误或者选择退出。。。。
pause
exit
:st_2
shutdown -a
@ECHO 现在正在取消进行中的关机选项
@ECHO 请你等待一会,操作马上生效。。。
pause
exit
:st_1
@ECHO 这是一个关机操作,你需要特定的时间格式如12:09
@ECHO 24进制具体时间:如13:08
set /p rest=您要什么时间关机(24进制具体时间:如12:08):
ECHO 那行,我们就在%rest%关机,希望你做好准备,我们会倒计时30秒
at %rest% shutdown -s
pause
goto main
:j
@ ECHO 请输入你的选择:(1.2.3)
@ ECHO 1.转换D盘格式为ntfs
@ ECHO 2.转换E盘格式为ntfs
@ ECHO 3.转换F盘格式为ntfs
PAUSE
set /p choice="请确认你的选则:"
if "%choice%"=="1" goto dr_1
if "%choice%"=="2" goto dr_2
if "%choice%"=="3" goto dr_3
if not "%choice%"=="1" goto error
:dr_1
convert D: /fs:ntfs
pause
exit
:dr_2
convert E: /fs:ntfs
pause
exit
:dr_3
convert F: /fs:ntfs
pause
exit
:error
@ ECHO 你输入的选项有误,或者你选择退出
@ ECHO 现在正在推出。。。。
pause
goto main
联系客服