|
plp626
银牌会员
钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『楼 主』:
不得不佩服此"牛人"的耐心
全部代码139K超过了发帖字数限制,所以分两次,
@echo off
REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REM WinCMD 工具由刘希英编译,初次编译时间为2006年8月6日。
REM 编写此工具主要是为了学习批处理的使用方法。有兴趣的朋友可以与我联系一起学习进步。
REM 由于作者是水平有限,所以程序难免有错误或不足之处。望高手能批评指证。
REM 作者没有学过批处理命令,是靠一条条命令试学习的,其中的困难只有我自己知道,所以如要转载请保证程序的完整,谢谢!
REM 本工具经多次修改完善,难免会出现错误国或不足之处,希望能批评指证!
REM 本工具应用于Windows NT4.0 2000 XP 系统。
REM 开始编译...
REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if exist tmpwincmd.dat del /f/q tmpwincmd.dat &goto :Qingli1
if not exist %windir%\Winc.dat echo 0 >%windir%\Winc.dat
for /f "delims=" %%i in (%windir%\Winc.dat) do set WinCNum=%%i
set /a WinCNum=%WinCNum%+1
echo %WinCNum% >%windir%\Winc.dat
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\LiuxStudio\WinCMD" /v InstallPath >"%temp%\~WincmdPath.txt"
if errorlevel 1 echo. &echo 注册表项错误,会导致本工具多项功能无法正常使用,请从新安装WinCMD... &pause >nul
for /f "skip=4 tokens=2 delims=Z" %%i in (%temp%\~WincmdPath.txt) do set WincmdPath=%%i
echo %WincmdPath% >"%temp%\~WincmdPath.txt"
for /f "tokens=" %%i in (%temp%\~WincmdPath.txt) do set WincmdPath=%%i
:return
title 欢迎使用 WinCMD 工具! 当前日期:%date% 现在时间:%time%
echo.
color 0B
echo ≡≡ 欢迎使用 WinCMD 关机程序 ≡≡
echo.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
echo [1] 快速关闭计算机 [Z] 注销当前用户
echo.
echo [2] 快速重启计算机 [U] 启动流星关机程序
echo.
echo [3] 锁闭计算机 [D] 定时关机
echo.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
echo [F] WinCMD功能表→ [A] 关于本工具
echo.
echo [S] 搜索引擎→ [0] 退出
echo.
echo ------------------------------------------------------------------------
echo [X] 下载最新的WinCMD工具
echo ------------------------------------------------------------------------
echo [H] 快速关机说明 版号:LX_V07.8.20_105
echo.
echo.
echo.
set /p chs=请输入你的选择:
if /i "%chs%"=="U" (
if exist ShutVBS.exe start ShutVBS.exe &cls &goto :return
echo. &echo 错误找不到文件,请重新安装! &echo. &pause &exit
)
if /i "%chs%"=="A" (start /max 关于.txt &cls &goto :return)
if /i "%chs%"=="3" (rundll32.Exe user32.dll,LockWorkStation &cls &goto :return)
if /i "%chs%"=="1" (
if exist Annex\fastshut.exe start Annex\fastshut.exe &exit
echo. &echo 错误找不到文件,请重新安装! &echo. &pause &exit
)
if /i "%chs%"=="+1" (
if exist Annex\快速关机.lnk copy Annex\快速关机.lnk "%userprofile%\桌面\快速关机.lnk" /y >nul &echo. &echo 以在桌面创建快速关机,按任意键返回.. &pause >nul &cls &goto :return
echo. &echo 错误找不到文件,请重新安装! &echo. &pause &exit
)
if /i "%chs%"=="2" (
if exist Annex\fastroot.exe start Annex\fastroot.exe &exit
echo. &echo 错误找不到文件,请重新安装! &echo. &pause &exit
)
if /i "%chs%"=="+2" (
if exist Annex\快速关机.lnk copy Annex\快速重启.lnk "%userprofile%\桌面\快速重启.lnk" /y >nul &echo. &echo 以在桌面创建快速重启,按任意键返回.. &pause >nul &cls &goto :return
echo. &echo 错误找不到文件,请重新安装! &echo. &pause &exit
)
if /i "%chs%"=="Num" (echo. &echo WinCMD己运行%WinCNum%次。 &pause >nul &cls &goto :return)
if /i "%chs%"=="Z" (shutdown -l &exit)
if /i "%chs%"=="S" (
if not exist sousuo.exe echo 找不到文件,请重新安装WinCMD工具... &pause >nul &cls &goto :return
call sousuo.exe
goto :return
)
if /i "%chs%"=="H" (echo. &echo 输入 +1 或者 +2 回车,就会在桌面创建快速关机或重启的图标 &pause >nul &cls &goto :return)
if /i "%chs%"=="X" (start explorer "http://liuxiying.ys168.com/" &cls &goto :return)
if /i "%chs%"=="D" (goto :dingshi)
if /i "%chs%"=="F" (goto :help)
if /i "%chs%"=="0" (exit)
if /i "%chs%"=="CMD" (cls&%windir%\system32\cmd.exe&cls&goto :return)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto :return
:dingshi
net user %USERNAME% >%temp%\~user.txt
type %temp%\~user.txt | find /i "admin" >nul
if errorlevel 1 goto :Noadmin1
cls &color 0a
title WinCMD 定时关机 欢迎使用 WinCMD 工具!
if not exist %windir%\Wincmd\dingshi.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... &pause >nul &exit
for /f %%i in (%windir%\Wincmd\dingshi.dat) do if /i "%%i"=="0" (goto :dingshi1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... &pause >nul &exit
@set /p shc= 进入该项需要密码,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :dingshi1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :return
:dingshi1
cls
color 0A
echo.
echo == 欢迎使用 WinCMD 定时关机工具 ==
echo.
echo.
echo.
echo [1] 设定关机时间
echo.
echo [2] 取消己开启的定时
echo.
echo [.] 返回
echo. &echo.
set /p shutA=请选择:
if /i "%shutA%"=="1" (goto :dingshi2)
if /i "%shutA%"=="2" (shutdown -a &echo. &echo 定时己取消! &echo. &pause &cls &goto :return)
if /i "%shutA%"=="." (cls &goto :return)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :dingshi1
:dingshi2
regedit /e %temp%\~time.reg "HKEY_CURRENT_USER\Control Panel\International"
reg add "HKEY_CURRENT_USER\Control Panel\International" /v sTimeFormat /t REG_SZ /d H:mm:ss /f >nul
time /t >%temp%\~time.txt
for /f "delims=:" %%S in (%temp%\~time.txt) do set timeS=%%S
for /f "eol=; tokens=2 delims=:" %%F in (%temp%\~time.txt) do set timeF=%%F
if %timeS% EQU 08 set timeS=8
if %timeS% EQU 09 set timeS=9
if %timeF% EQU 08 set timeF=8
if %timeF% EQU 09 set timeF=9
echo.
echo 现在时间为: %timeS%点%timeF%分
echo.
regedit /s %temp%\~time.reg
set /p xiaoshi=请输入小时:
if "%xiaoshi%"=="" (echo. &echo 错误!没有输入时间,请重新开始... &pause >nul &goto :dingshi1)
if %xiaoshi% GEQ 24 (
echo.
echo 错误! 定时超出了24小时或不能识别的格式,请重新开始...
pause >nul
goto :dingshi1
)
set /p fenzhong=请输入分钟:
if "%fenzhong%"=="" (echo. &echo 错误!没有输入分钟,请重新开始... &pause >nul &goto :dingshi1)
if %fenzhong% GTR 59 (
echo.
echo 错误! 超过了59分钟或不能识别的格试,请重新开始...
pause >nul
goto :dingshi1
)
set Dtime1=0
set /a Ftime=%timeF%+%fenzhong%
if %Ftime% GTR 59 (set /a Ftime=%Ftime%-60 &set /a Dtime1=%Dtime1%+1 )
set /a Dtime=%xiaoshi%+%Dtime1%+%timeS%
if %Dtime% GEQ 24 goto :guolingdian
if %Dtime% LSS 24 set Riqi=今天&goto :xianshi
:guolingdian
set /a Dtime=%Dtime%-24
if %Dtime% LEQ 5 set Riqi=凌晨&goto :xianshi
if %Dtime% GTR 5 (if %Dtime% LSS 12 set Riqi=明天上午&goto :xianshi)
if %Dtime% EQU 12 set Riqi=明天中午&goto :xianshi
if %Dtime% GTR 12 (if %Dtime% LEQ 18 set Riqi=明天下午&goto :xianshi)
if %Dtime% GTR 18 set Riqi=明天晚上&goto :xianshi
:xianshi
echo.
echo 你的定时为:%xiaoshi%小时%fenzhong%分
echo.
echo 系统将在: %Riqi% %Dtime%点%Ftime%分 关闭...
echo.
set /p chongshe=[Y]确定 [C]重新设定 :
if /i "%chongshe%"=="C" (cls &goto :dingshi1)
if /i "%chongshe%"=="Y" (goto :dingshi3)
echo.
echo 选择错误请重新重新设定...
pause >nul &cls
goto :dingshi2
:dingshi3
set /a shi=%xiaoshi%*3600
set /a fen=%fenzhong%*60
set /a shut=%shi%+%fen%
shutdown -s -t %shut% -c 系统将在:%Riqi%%Dtime%点%Ftime%分关闭.-----------------------------------------------提示:要取消定时请打WinCMD工具进入定时项选[2]取消即可。
echo.
echo 定时已启动,按任意键返回...
pause >nul &cls &goto :return
:Noadmin1
echo.
echo 你不是管理员用户不能使用此功能....
pause >nul &cls
goto :return
:help
color 0A
cls
echo.
echo ╭════════════════╮
echo ║ ║
echo ╭═════════┤ 作者:刘希英(流星) ├════════╮
echo ║ ║ ║ ║
echo ║ ╰════════════════╯ ║
echo ║ ║
echo ║ 欢迎使用 WinCMD 工具! ║
echo ║ ║
echo ║ 为学习批处理而编写,有兴趣你也研究一下下!! ║
echo ║ ║
echo ║ 如有问题请与作者联系。大家一起研究! ║
echo ║ ║
echo ║ E-Mail:liuxiying@sina.com QQ:185733281 UC:26272885 ║
echo ║ ║
echo ║ 版权(C) 2006-2007 版本: LX07.8.20_105 ║
echo ║ ║
echo ║ 初始密码:6688 ║
echo ║ ║
echo ║ ╭══════════════════╮ ║
echo ║ ║ http:\\liuxiying.ys168.com ║ ║
echo ╰════════┤ ├═══════╯
echo ║ http:\\iepan.ys168.com ║
echo ╰══════════════════╯
echo.
pause
:gongneng
title 欢迎使用 WinCMD 工具! ≡≡ 功能列表 ≡≡
color 0B
cls & echo.
echo ≡≡ WinCMD功能表,作者将为你提供更多服务 ≡≡
echo.
echo -------------------------------------------------------------------------
echo.
echo [1] 清理系统拉圾文件→ [6] 杀毒不用愁→
echo.
echo [2] 隐藏或禁用系统项目→ [7] 其它应用功能→
echo.
echo [3] 系统,IE,修复及优化→ [8] 修改帐户或 WinCMD 密码→
echo.
echo [4] [9] WinCMD工具配置管理→
echo.
echo [5] 鼠标及右键菜单→ [0] 退出
echo.
echo -------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo -------------------------------------------------------------------------
echo.
echo.
set /p shc=请输入你的选择:
if /i "%shc%"=="1" (goto :Qingli)
if /i "%shc%"=="2" (goto :system)
if /i "%shc%"=="3" (cls &goto :xiufu)
if /i "%shc%"=="4" (echo. &echo 没有编译的页面... &pause >nul &cls &goto :return)
if /i "%shc%"=="5" (goto :Mouse)
if /i "%shc%"=="6" (cls &goto :KVRav)
if /i "%shc%"=="7" (cls &goto :qitagongneng)
if /i "%shc%"=="8" ( goto :userGGpas)
if /i "%shc%"=="9" ( goto :Wincmdsystem)
if /i "%shc%"=="." (cls &goto :return)
if /i "%shc%"==".." (cls &goto :return)
if /i "%shc%"=="0" ( exit )
if /i "%shc%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“清理系统拉圾文件”项那么就输入 1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :gongneng
)
if /i "%shc%"=="lxadmin" ( goto :pass1 )
echo.
echo 选择错误请重新选择...
pause >nul & cls
goto :gongneng
:Qingli
cls &color 0e
title WinCMD 工具帮你清理系统垃圾 欢迎使用 WinCMD 工具!
if not exist %windir%\Wincmd\qingli.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... & pause >nul &exit
for /f %%i in (%windir%\Wincmd\qingli.dat) do if /i "%%i"=="0" (goto :Qingli1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... & pause >nul &exit
@set /p shc= 进入该项需要密码,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :Qingli1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng
:Qingli1
echo 1 >%windir%\wincmd\Renwu.dat
cls & echo.
echo === WinCMD 工具可以帮你清理系统垃圾文件 ===
echo.
echo ------------------------------------------------------------------------
echo.
echo [1] 清理上网缓存文件 [6] 清理回收站
echo.
echo [2] 清理临时文件 [7] 清理 Cookies 文件
echo.
echo [3] 清理缩略图加速文件 [8] 清理系统记录→
echo.
echo [4] 删除系统还原文件 [9] 全面清理系统拉圾→
echo.
echo [5] 删除更新补丁反安装文件 [0] 退出
echo.
echo -------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo -------------------------------------------------------------------------
echo.
echo.
set /p qingli=请输入你的选择:
if /i "%qingli%"=="1" (
echo. &echo 按任意键查看文件并清除它们... &pause >nul
dir/a/s "%userprofile%\Local Settings\Temporary Internet Files" & echo. &echo. &echo. &echo -- 你可以推动右边的滑块查看,按任意键清理它们 -- &echo. &echo.
goto :huancunYN
)
if /i "%qingli%"=="2" (
echo. &echo 按任意键查看文件并清除它们... &pause >nul
dir/a/s %temp% &dir/a/s %windir%\temp &echo. &echo. &echo. &echo -- 你可以推动右边的滑块查看,按任意键清理它们 -- &echo. &echo.
goto :linshiYN
)
if /i "%qingli%"=="3" (cls &goto :suoluetu)
if /i "%qingli%"=="4" (
echo. &echo 按任意键查看系统备份文件... &echo. &pause >nul
dir/q/s/a:a "%SystemDrive%\system volume information"
echo. &echo. &echo. &echo.
echo ------------------------------------------------------------------
echo -- 系统还原文件时间长了会越积越多,而占用的非常大的磁盘空间 --
echo -- --
echo -- WinCMD会清理这些文件,并同时创建新的还原点来节余更多的空间。 --
echo ------------------------------------------------------------------
echo.
echo 以上为系统还还原文件 &echo. &echo.
goto :volumeYN
)
if /i "%qingli%"=="5" (cls &goto :buding)
if /i "%qingli%"=="6" (cls &call QLHSZ.exe &cls &goto :Qingli1)
if /i "%qingli%"=="7" (cls &goto :Cookie)
if /i "%qingli%"=="8" (cls &goto :qinglijilu)
if /i "%qingli%"=="9" (cls &goto :qita)
if /i "%qingli%"==".." (cls &goto :return)
if /i "%qingli%"=="." (cls &goto :gongneng)
if /i "%qingli%"=="0" (exit)
if /i "%qingli%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“清理临时文件”项那么就输入 2 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Qingli1
)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :Qingli1
:huancunYN
set /p YN=[Y] 清理 [N] 返回 请选择:
if /i "%YN%"=="Y" (
del /s/q "%userprofile%\Local Settings\Temporary Internet Files"\"*.*"
echo. &echo.& echo 清理完必 & pause & cls & goto :Qingli1
)
if /i "%YN%"=="N" (goto :Qingli1)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :huancunYN
:linshiYN
set /p YN=[Y] 清理 [N] 返回 请选择:
if /i "%YN%"=="Y" (
rd/s/q %temp% &del/s/q/f %windir%\temp &if not exist %temp% md %temp%
echo. &echo. &echo 清理完必,有些文件正被系统使用不能清除,请下次开机再试...
echo. &echo 按任意键返回...
pause >nul &echo 0 >tmpwincmd.dat &call Wincmd.exe
)
if /i "%YN%"=="N" (goto :Qingli1)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :linshiYN
:suoluetu
echo.
echo [Y] 清理缩略图加速文件
echo.
echo [.] 返回
echo.
echo.
set /p suoluetu=请选择:
if /i "%suoluetu%"=="Y" (call DelThumbs.exe &cls &goto :Qingli1)
if /i "%suoluetu%"=="." (cls &goto :Qingli1)
echo.
echo 选择错误,请重新选择...
pause >nul
cls &goto :suoluetu
:VolumeYN
set /p YN=[Y] 清除文件 [N] 返回 请选择:
if /i "%YN%"=="Y" (
del /s/q/f "%SystemDrive%\system volume information\*.*"
for /f %%i in ('dir/ad/b "%SystemDrive%\system volume information"') do RD/s/q "%SystemDrive%\system volume information"\"%%i"
echo. &echo.
echo 清理完必,正在创建系统还原点...
if not exist systemhy.vbs echo. &echo 错误找不到文件,无法创建系统还原点,请重新安装WinCMD工具... &pause >nul &cls &goto :Qingli1
ping 127.0.0.1 -n 3 >nul
if not exist "%SystemDrive%\system volume information\*.*" start systemhy.vbs
ping 127.0.0.1 -n 2 >nul
start systemhy.vbs
echo.
echo 系统还原点创建完成,按任意键返回...
pause >nul &cls
goto :Qingli1
)
if /i "%YN%"=="N" (goto :Qingli1)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :VolumeYN
:buding
echo.
echo == 更新补丁反安装文件清理 ==
echo.
echo ----------------------------------------------------------------------------
echo.
echo 说明: 系统的更新补丁程序安装后会留下一些反安装文件,这些反安装文件是用来
echo.
echo 卸载更新补丁程序的,更新次数越多占用磁盘空间越大,这些文件是可以删
echo.
echo 除的,因为一般用户无须卸载更新程序,所以这些反安装文件也就没用了。
echo.
echo ----------------------------------------------------------------------------
echo.
echo.
echo.
echo.
echo 按任意键查看文件... &pause >nul
if not exist %windir%\$*$ cls &echo. &echo 没有找到文件,你的系统可能没有打过补丁或已被清理过... &echo. &echo 按任意健返回... &pause >nul &goto :Qingli1
for /f %%d in ('dir /ad/b %windir%\$*$') do @dir/a/s %windir%\%%d
dir /a %windir%\KB*.log
echo.
set /p buding1=[Y] 清理文件 [N] 返回上一页 请选择:
if /i "%buding1%"=="Y" (
for /f %%d in ('dir /ad/b %windir%\$*$') do @echo 正在清理反安装补丁文件..... &rd /s/q %windir%\%%d
del /f/q %windir%\KB*.log
echo. &echo. &echo 清理完必,按任意键返回清理页...
pause >nul
goto :Qingli1
)
if /i "%buding1%"=="N" (goto :Qingli1)
echo.
echo 选择错误请重新选择!
echo.
pause &cls
goto :buding
:Cookie
echo.
echo Cookie文件用户登陆网站时用来记录登陆时间日期或一些个人如用户名密码之类的信息文件
echo.
if not exist "%userprofile%\Cookies"\*.txt echo 没有找到Cookies文件返回... &ping 127.0.0.1 -n 3 >nul &cls &goto :Qingli1
echo 按任意键查看文件... &pause >nul
dir/a "%userprofile%"\Cookies\*.txt
echo.
set /p cookise=[Y] 清除这些文件 [N] 返回上一页 请选择:
if /i "%cookise%"=="Y" (
del/f/q "%userprofile%"\Cookies\*.txt
echo. &echo 清理完必按任意键返回上一页.... &pause >nul
goto :Qingli1
)
if /i "%cookise%"=="N" (cls &goto :Qingli1)
echo.
echo 选择错误,返回...
ping 127.0.0.1 -n -3 >nul
cls
goto :Cookie
:Qita
echo.
echo 清理磁盘垃圾功能分两个部份;
echo.
echo.
echo [1] 由用户指定要清理的垃圾文件类型
echo.
echo 说明:在弹出的对话框中选择要清理的文件类型,在前面打上对钩然后确定即可。
echo.
echo [2] 开始执行清理
echo.
echo [.] 返回
echo.
echo.
set /p qmql=请选择:
if /i "%qmql%"=="1" (cleanmgr /sageset:99 &cls &goto :Qita)
if /i "%qmql%"=="2" (goto :qmql)
if /i "%qmql%"=="." (goto :Qingli1)
echo.
echo 选择错误,请重新选择...
pause >nul &cls
goto :Qita
:qmql
echo.
echo 开始前作者建意你关闭其它应用程序! 按任意键开始...
pause >nul
echo. &echo 开始扫描垃圾文件,这可能需要几分钟的时间...
echo.
echo 扫描还原了的碎片文件及文件夹...
echo.
if exist %SystemDrive%\chk.txt del %SystemDrive%\chk.txt
if exist C:\FOUND.* for /f %%i in ('dir /ad/b C:\FOUND.*') do echo C:\%%i &echo C:\%%i >>%SystemDrive%\chk.txt
if exist D:\FOUND.* for /f %%i in ('dir /ad/b D:\FOUND.*') do echo D:\%%i &echo D:\%%i >>%SystemDrive%\chk.txt
if exist E:\FOUND.* for /f %%i in ('dir /ad/b E:\FOUND.*') do echo E:\%%i &echo E:\%%i >>%SystemDrive%\chk.txt
if exist F:\FOUND.* for /f %%i in ('dir /ad/b F:\FOUND.*') do echo F:\%%i &echo F:\%%i >>%SystemDrive%\chk.txt
if exist G:\FOUND.* for /f %%i in ('dir /ad/b G:\FOUND.*') do echo G:\%%i &echo G:\%%i >>%SystemDrive%\chk.txt
if exist H:\FOUND.* for /f %%i in ('dir /ad/b H:\FOUND.*') do echo H:\%%i &echo H:\%%i >>%SystemDrive%\chk.txt
if exist I:\FOUND.* for /f %%i in ('dir /ad/b I:\FOUND.*') do echo I:\%%i &echo I:\%%i >>%SystemDrive%\chk.txt
if exist J:\FOUND.* for /f %%i in ('dir /ad/b J:\FOUND.*') do echo J:\%%i &echo J:\%%i >>%SystemDrive%\chk.txt
if exist K:\FOUND.* for /f %%i in ('dir /ad/b K:\FOUND.*') do echo K:\%%i &echo K:\%%i >>%SystemDrive%\chk.txt
if exist L:\FOUND.* for /f %%i in ('dir /ad/b L:\FOUND.*') do echo L:\%%i &echo L:\%%i >>%SystemDrive%\chk.txt
if exist M:\FOUND.* for /f %%i in ('dir /ad/b M:\FOUND.*') do echo M:\%%i &echo M:\%%i >>%SystemDrive%\chk.txt
if exist N:\FOUND.* for /f %%i in ('dir /ad/b N:\FOUND.*') do echo N:\%%i &echo N:\%%i >>%SystemDrive%\chk.txt
if exist O:\FOUND.* for /f %%i in ('dir /ad/b O:\FOUND.*') do echo O:\%%i &echo O:\%%i >>%SystemDrive%\chk.txt
if exist P:\FOUND.* for /f %%i in ('dir /ad/b P:\FOUND.*') do echo P:\%%i &echo P:\%%i >>%SystemDrive%\chk.txt
if exist Q:\FOUND.* for /f %%i in ('dir /ad/b Q:\FOUND.*') do echo Q:\%%i &echo Q:\%%i >>%SystemDrive%\chk.txt
if exist R:\FOUND.* for /f %%i in ('dir /ad/b R:\FOUND.*') do echo R:\%%i &echo R:\%%i >>%SystemDrive%\chk.txt
if exist S:\FOUND.* for /f %%i in ('dir /ad/b S:\FOUND.*') do echo S:\%%i &echo S:\%%i >>%SystemDrive%\chk.txt
if exist T:\FOUND.* for /f %%i in ('dir /ad/b T:\FOUND.*') do echo T:\%%i &echo T:\%%i >>%SystemDrive%\chk.txt
if exist U:\FOUND.* for /f %%i in ('dir /ad/b U:\FOUND.*') do echo U:\%%i &echo U:\%%i >>%SystemDrive%\chk.txt
if exist V:\FOUND.* for /f %%i in ('dir /ad/b V:\FOUND.*') do echo V:\%%i &echo V:\%%i >>%SystemDrive%\chk.txt
if exist W:\FOUND.* for /f %%i in ('dir /ad/b W:\FOUND.*') do echo W:\%%i &echo W:\%%i >>%SystemDrive%\chk.txt
if exist X:\FOUND.* for /f %%i in ('dir /ad/b X:\FOUND.*') do echo X:\%%i &echo X:\%%i >>%SystemDrive%\chk.txt
if exist Y:\FOUND.* for /f %%i in ('dir /ad/b Y:\FOUND.*') do echo Y:\%%i &echo Y:\%%i >>%SystemDrive%\chk.txt
if exist Z:\FOUND.* for /f %%i in ('dir /ad/b Z:\FOUND.*') do echo Z:\%%i &echo Z:\%%i >>%SystemDrive%\chk.txt
if not exist %SystemDrive%\chk.txt goto :nochk
echo.
echo 清理还原了的碎片文件及文件夹...
if exist %SystemDrive%\chk.txt FOR /F %%i in (%SystemDrive%\chk.txt) do RD /s/q %%i &if exist %SystemDrive%\chk.txt del %SystemDrive%\chk.txt
echo.
:nochk
if exist %SystemDrive%\wincmd.jl del %SystemDrive%\wincmd.jl >nul
echo 扫描临时文件... &dir /s/a/b "%SystemDrive%\*.tmp" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描内存转换文件... &dir /s/a/b "%SystemDrive%\*.dmp" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描旧的备份文件... &dir /s/a/b "%SystemDrive%\*.old" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描备份文件... &dir /s/a/b "%SystemDrive%\*.prv" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描临时word备份文件... &dir /s/a/b "%SystemDrive%\*.wbk" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描临时Excel备份文件... &dir /s/a/b "%SystemDrive%\*.xlk" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描错误日志文件... &dir /s/a/b "%SystemDrive%\*.err" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描索引临时文件... &dir /s/a/b "%SystemDrive%\*.gid" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描搜索文件... &dir /s/a/b "%SystemDrive%\*.fnd" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描帮助临时文件... &dir /s/a/b "%SystemDrive%\*.fts" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描帮助临时文件... &dir /s/a/b "%SystemDrive%\*.ftg" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描缓存文件... &dir /s/a/b "%SystemDrive%\*.mch" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描安装临时文件... &dir /s/a/b "%SystemDrive%\*.---" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描异常文件... &dir /s/a/b "%SystemDrive%\*.@@@" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描异常文件... &dir /s/a/b "%SystemDrive%\*.$$$" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描临时文件... &dir /s/a/b "%SystemDrive%\*.$*" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描加速缓存文件... &dir /s/a/b "%windir%\Prefetch\*.*" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描缩略图文件... &dir /s/a/b "%SystemDrive%\Thumbs.db" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描错误日志文件... &dir /s/a/b "%SystemDrive%\errorlog.txt" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描无用的日志文件... &dir /s/a/b "%windir%\system32\wbem\Logs\*.log"
dir /s/a/b "%windir%\setup*.log" >>%SystemDrive%\wincmd.jl
dir /s/a/b "%windir%\upd*.log" >>%SystemDrive%\wincmd.jl
dir /s/a/b "%windir%\supd*.log" >>%SystemDrive%\wincmd.jl
dir /s/a/b "%windir%\dtcins*.log" >>%SystemDrive%\wincmd.jl
dir /s/a/b "%windir%\iis*.log" >>%SystemDrive%\wincmd.jl
dir /s/a/b "%windir%\tsoc.log" >>%SystemDrive%\wincmd.jl >>%SystemDrive%\wincmd.jl
echo 扫描临时文件... &dir /s/a/b "%SystemDrive%\imagedb.aid" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描安装的临时文件... &dir /s/a/b "%SystemDrive%\mscreate.dir" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描丢失簇的文件... &dir /s/a/b "%SystemDrive%\chklist.*" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo 扫描碎片文件... &dir /s/a/b "%SystemDrive%\*.chk" >>%SystemDrive%\wincmd.jl &cls &type %SystemDrive%\wincmd.jl
echo.
echo 扫描完必,开始清理...
echo.
for /f "delims=" %%i in (%SystemDrive%\wincmd.jl) do attrib -s -r -h "%%i" &echo 正在删除 "%%i" &del /f/q "%%i" >nul
if exist %SystemDrive%\wincmd.jl del %SystemDrive%\wincmd.jl
cls &echo.
echo 正在清理全部磁盘垃圾...
echo.
echo 这可能需要几分钟的时间....
cleanmgr /sagerun:99
echo.
echo 清理完必返回...
ping 127.0.0.1 -n 3 >nul
cls &goto :Qingli1
:Qinglijilu
cls &echo.
echo === WinCMD 工具可以帮你清理系统记录信息 ===
echo.
echo ------------------------------------------------------------------------
echo.
echo [1] 清理使用过的文件记录 [6]
echo.
echo [2] 清理地址栏记录 [7]
echo.
echo [3] 清理注册表历史记录 [8]
echo.
echo [4] 清理IE历史记录 [9] 清理全部*
echo.
echo [5] [0] 退出
echo.
echo -------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo -------------------------------------------------------------------------
echo.
echo.
set /p qinglijilu=请输入你的选择:
if /i "%qinglijilu%"=="1" (cls &goto :jiluYN)
if /i "%qinglijilu%"=="2" (goto :dizhilan)
if /i "%qinglijilu%"=="3" (
echo. &echo 按任意键查看注册表历史记录... &pause >nul
reg query HKEY_CURRENT_USER\Software\WinRAR\ArcHistory /s
reg query HKEY_CURRENT_USER\Software\WinRAR\DialogEditHistory /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs /s
reg query HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList /s
reg query HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU /s
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /s
goto :zhuceYN
)
if /i "%qinglijilu%"=="4" (cls &goto :IEjilu)
if /i "%qinglijilu%"==".." (cls &goto :return)
if /i "%qinglijilu%"=="." (cls &goto :qingli1)
if /i "%qinglijilu%"=="0" (exit)
if /i "%qinglijilu%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“清理地址栏记录”项那么就输入 2 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Qinglijilu
)
echo.
echo 选择错误请重新选择!
echo.
pause >nul
goto :Qinglijilu
:jiluYN
echo.
echo 按任意键查看文件并清除它们...
pause >nul
if exist "%userprofile%"\Recent\*.lnk dir/a/s/b "%userprofile%"\Recent
if exist "%userprofile%\Application Data\Microsoft\Office\Recent\*.lnk" dir/a/s/b "%userprofile%\Application Data\Microsoft\Office\Recent"
echo.
echo.
echo -- 以上为曾打开过的文档记录 --
echo.
echo.
set /p YN=[Y] 清理 [N] 返回 请选择:
if /i "%YN%"=="Y" (
if exist "%userprofile%"\Recent\*.lnk del/s/q/a:a "%userprofile%"\Recent\*.*
if exist "%userprofile%\Application Data\Microsoft\Office\Recent\*.lnk" del/s/q/a:a "%userprofile%\Application Data\Microsoft\Office\Recent\*.*"
echo. &echo.& echo 清理完必 &pause >nul &cls &goto :Qinglijilu
)
if /i "%YN%"=="N" (goto :Qinglijilu)
echo.
echo 选择错误请重新选择!
echo.
pause >nul
goto :jiluYN
:dizhilan
echo.
echo 地址栏里记录了一些你曾经登陆过的网站地址,按任意键查看...
pause >nul
reg query "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" >%temp%\~dizhi.txt
for /f "skip=4 eol=; tokens=2 delims=SZ" %%i in (%temp%\~dizhi.txt) do echo %%i
echo. &echo 以上为你曾访问过的网站地址!
echo.
set /p dizhilan=[Y] 清理 [N] 返回 请选择:
if /i "%dizhilan%"=="Y" (
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" /va /f >nul
echo.
echo 已清空地址栏,按任意键返回...
pause >nul
cls &goto :Qinglijilu
)
if /i "%dizhilan%"=="N" (cls &goto :Qinglijilu)
echo.
echo 选择错误请重新选择!
echo.
pause >nul
goto :dizhilan
:zhuceYN
echo. &echo. &echo.
set /p YN=[Y] 清除注册表历史记录 [N] 返回 请选择:
if /i "%YN%"=="Y" (
echo. &echo 正在清理注册表请稍后...
reg delete HKEY_CURRENT_USER\Software\WinRAR\ArcHistory /va /f >nul &echo 清理WinRAR解压历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\WinRAR\DialogEditHistory\ArcName /va /f >nul &echo 清理WinRAR压缩历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\WinRAR\DialogEditHistory\ExtrPath /va /f >nul &echo 清理WinRAR解压历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList /va /f >nul &echo 清理MediaPlayer文件播放记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentURLList /va /f >nul &echo 清理MediaPlayer网络播放记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs /f >nul &echo 清理用户运行或操作历史记录... OK &echo.
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs /f >nul &echo 清理用户运行或操作历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count /va /f >nul &echo 清理用户运行程序历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count /va /f >nul &echo 清理用户运行程序历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU /va /f >nul &echo 清理用户运行历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU /va /f >nul &echo 清理用户运行或操作历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU /f >nul &echo 清理用户运行或操作历史记录... OK &echo.
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU /f >nul &echo 清理用户运行或操作历史记录... OK &echo.
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f >nul &echo 清理用户运行历史记录... OK &echo.
echo. &echo 注册表清理完必,按任意键返回...
pause >nul
goto :Qinglijilu
)
if /i "%YN%"=="N" (goto :Qinglijilu)
echo.
echo 选择错误请重新选择!
echo.
pause >nul &cls
goto :zhuceYN
:IEjilu
echo.
echo IE历史记录,记录你曾访问过的网站,网页,或本机的一些记录信息。
echo.
echo 按任意建查看记录文件...
pause >nul
dir /a/s/b "%UserProfile%\Local Settings\History\*.dat"
echo.
set /p IEjilu=[Y] 清理历史记录 [N] 返回 请选择:
if /i "%IEjilu%"=="Y" (
del /s/q/f "%UserProfile%\Local Settings\History\*.dat"
for /f %%i in ('dir/ad/b "%UserProfile%\Local Settings\History\history.ie5"') do RD/s/q "%UserProfile%\Local Settings\History\history.ie5"\%%i
echo. &echo 清理完必,按任意键返回...
pause >nul &cls
goto :Qinglijilu
)
if /i "%IEjilu%"=="N" (cls &goto :Qinglijilu)
echo.
echo 选择错误请重新选择!
echo.
pause >nul &cls
goto :IEjilu
:system
cls & color 0a
title 欢迎使用 WinCMD 工具! 隐藏或禁用系统项目!不要再让别人乱用你的电脑了....
if not exist %windir%\Wincmd\yincang.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... &pause >nul &exit
for /f %%i in (%windir%\Wincmd\yincang.dat) do if /i "%%i"=="0" (goto :system1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... &pause &exit
@set /p shc= 进入该项是需要密码的,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :system1)
echo.
echo 密码错误,按任意键返回....
pause >nul & cls
goto :gongneng
rem 强行经典开始菜单
:system1
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSimpleStartMenu /t REG_DWORD /d 1 /f >nul
rem .....................................................................................
cls
echo.
echo =-= 隐藏或禁用系统项目 =-=
echo.
echo -----------------------------------------------------------------------------
echo.
echo [1] 隐藏开始单中的项目→ [6] 隐藏桌面相关项目→
echo.
echo [2] 隐藏控制面板项目→ [7] 选项卡项目禁用→
echo.
echo [3] 隐藏电脑硬盘 [8]
echo.
echo [4] 隐藏网络或 IE 项目* [9] 本工具更改项目立刻生效
echo.
echo [5] 禁用或允许某指定程序 [0] 退出
echo.
echo -----------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo -----------------------------------------------------------------------------
echo.
echo.
set /p system=请输入你的选择:
if /i "%system%"=="1" (cls &goto :Coverstartmenu)
if /i "%system%"=="2" (cls &goto :Control)
if /i "%system%"=="3" (cls &goto :drive)
if /i "%system%"=="-3" (cls &goto :Undrive)
if /i "%system%"=="5" (cls &goto :jinyongchengxu)
if /i "%system%"=="6" (cls &goto :qitajinyong)
if /i "%system%"=="7" (cls &goto :xuanxiangka)
if /i "%system%"=="9" (cls &goto :shengxiao)
if /i "%system%"=="0" (exit)
if /i "%system%"=="." (cls &goto :gongneng)
if /i "%system%"==".." (cls &goto :return)
if /i "%system%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“隐藏电脑硬盘”项那么就输入 3 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :system1
)
echo.
echo 选择错误,请重新选择...
puase >nul
cls &goto :system1
:shengxiao
echo.
echo 说明:
echo.
echo 此功能利用重建系统外壳的方法使 WinCMD 工具修改的项目立刻生效,而不用
echo.
echo 重启或注销电脑。但重建系统外壳可能会对系统正在运行的某些程序有一定影
echo.
echo 响,所以作者推荐你使用重启或注销的方法使其修改生效。
echo.
echo.
echo [U] 立刻生效
echo.
echo [.] 返回
echo.
echo.
set /p shengxiao=请选择:
if /i "%shengxiao%"=="U" (
tskill explorer >nul
ping 127.0.0.1 -n 5 >nul
tasklist >%temp%\~rask.txt
type %temp%\~rask.txt | find /i "EXPLORER.EXE" >nul
if errorlevel 1 start explorer.exe
cls &goto :system1
)
if /i "%shengxiao%"=="." (cls &goto :system1)
echo.
echo 选择错误....
pause >nul
cls &goto :shengxiao
:Coverstartmenu
echo.
echo == 选择你要隐藏的开始菜单项按回车即可 ==
echo.
echo ------------------------------------------------------------------------------
echo.
echo [1] 关机 [6] 设置 [B] 设置→控制面板
echo.
echo [2] 注销 [7] 文档 [C] 设置→任务栏和开如菜单
echo.
echo [3] 运行 [8] 最上面的文件夹 [D]
echo.
echo [4] 帮助和支持 [9] 收藏夹 [E]
echo.
echo [5] 搜索 [A] 程序 [0] 退出
echo.
echo ------------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 退出
echo.
echo ------------------------------------------------------------------------------
echo.
echo.
set /p startmenu=请输入你的选择:
if /i "%startmenu%"=="1" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoClose /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoClose /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-1" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoClose /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V Noclose /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="2" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v StartMenuLogOff /t REG_DWORD /d 1 /f >nul
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoLogOff /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v StartMenuLogOff /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoLogOff /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-2" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V StartMenuLogOff /F >nul
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoLogOff /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V StartMenuLogOff /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoLogOff /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="3" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRun /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRun /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-3" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoRun /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoRun /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="4" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoHelp /t REG_DWORD /d 1 /f >nul
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSMHelp /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoHelp /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSMHelp /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-4" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoHelp /F >nul
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSMHelp /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoHelp /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSMHelp /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="5" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFind /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFind /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-5" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFind /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFind /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="6" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetFolders /t REG_DWORD /d 1 /f >nul
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetTaskbar /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetFolders /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetTaskbar /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-6" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetFolders /F >nul
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetTaskbar /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetFolders /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetTaskbar /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="7" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRecentDocsMenu /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRecentDocsMenu /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-7" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoRecentDocsMenu /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoRecentDocsMenu /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="8" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoStartMenuSubFolders /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoStartMenuSubFolders /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-8" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoStartMenuSubFolders /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoStartMenuSubFolders /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="9" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFavoritesMenu /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFavoritesMenu /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-9" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFavoritesMenu /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFavoritesMenu /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="A" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoStartMenuMorePrograms /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoStartMenuMorePrograms /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-A" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoStartMenuMorePrograms /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoStartMenuMorePrograms /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="B" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoControlPanel /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoControlPanel /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-B" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoControlPanel /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoControlPanel /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="C" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetTaskbar /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetTaskbar /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="-C" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetTaskbar /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetTaskbar /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要隐藏开始菜单中的“设置”项那么就输入 6 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要恢复开始菜单中隐藏的“设置”项那么就输入 -6 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Coverstartmenu
)
if /i "%startmenu%"=="." (cls &goto :system1)
if /i "%startmenu%"==".." (cls &goto :return)
if /i "%startmenu%"=="0" (exit)
echo.
echo 选择错误,请重新选择...
puase >nul
cls &goto :Coverstartmenu
:Control
echo.
echo == 请选择你要隐藏的控制面板项目,恢复隐藏在字符前加“-”即可 ==
echo.
echo ------------------------------------------------------------------------------
echo [A] Internet 选项 [J] 区域和语言选项 [S] 无线网络安装向导
echo.
echo [B] Windows 防火墙 [K] 用户帐户 [T] 自动更新
echo.
echo [C] 安全中心 [L] 任务栏和开始菜单 [U] 系统
echo.
echo [D] 网络连接 [M] 日期和时间 [V] 显示
echo.
echo [E] 电话和调制解调器 [N] 游戏控制器 [W]
echo.
echo [F] 电源选项 [O] 声音和音频设备 [X]
echo.
echo [G] 辅助功能选项 [P] 鼠标 [Y] (自定意)*
echo.
echo [H] 管理工具* [Q] 添加或删除程序 [Z] 控制面板*
echo.
echo [I] 语音 [R] 添加硬件 [0] 退出
echo ------------------------------------------------------------------------------
echo [.] 返回上一页 [..] 返回首页
echo.
set /p Control=请选择要隐藏的项:
if /i "%control%"=="A" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v inetcpl.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-A" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v inetcpl.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="B" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v firewall.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-B" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v firewall.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="C" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v wscui.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-C" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v wscui.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="D" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v ncpa.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-D" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v ncpa.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="E" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v telephon.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-E" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v telephon.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="F" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v powercfg.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-F" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v powercfg.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="G" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v access.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-G" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v access.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="H" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v inetcpl.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-H" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v inetcpl.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="I" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v sapi.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-I" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v sapi.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="J" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v intl.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-J" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v intl.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="K" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v nusrmgr.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-K" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v nusrmgr.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="L" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoViewContextMenu /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoViewContextMenu /t REG_DWORD /d 1 /f >nul
echo 完成任务栏和开始菜单已被禁用... &echo. &pause &cls &goto ::Control
)
if /i "%control%"=="-L" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoViewContextMenu /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoViewContextMenu /F >nul
echo 完成己恢复被禁用的任务栏和开始菜单... &echo. &pause &cls &goto :Control
)
if /i "%control%"=="M" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v timedate.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-M" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v timedate.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="N" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v joy.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-N" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v joy.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="O" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v mmsys.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-O" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v mmsys.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="P" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v main.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-P" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v main.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="Q" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v appwiz.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-Q" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v appwiz.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="R" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v hdwwiz.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-R" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v hdwwiz.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="S" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v netsetup.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-S" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v netsetup.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="T" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v wuaucpl.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-T" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v wuaucpl.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="U" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v sysdm.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-U" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v sysdm.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="V" (
reg add "HKEY_CURRENT_USER\Control Panel\don't load" /v desk.cpl /t REG_SZ /d no /f >nul
echo. &echo 隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="-V" (
reg delete "HKEY_CURRENT_USER\Control Panel\don't load" /v desk.cpl /f >nul
echo. &echo 恢复隐藏成功,刷新查看.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="Y" (
echo. &echo 还没有编译完成,请关注更新.... &pause >nul &cls &goto :Control
)
if /i "%control%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要隐藏控制面板中的“鼠标”项那么就输入 P 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要恢复控制面板中隐藏的“鼠标”项那么就输入 -P 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Control
)
if /i "%control%"=="0" (exit)
if /i "%control%"=="." (cls &goto :system1)
if /i "%control%"==".."(cls &goto :return)
echo.
echo 选择错误,请重新选择...
pause >nul
cls &goto :Control
:drive
setlocal
set times=0
set panfu=0
set A=1
set B=2
set C=4
set D=8
set E=16
set F=32
set G=64
set H=128
set I=256
set J=512
set K=1024
set L=2048
set M=4096
set N=8192
set O=16384
set P=32768
set Q=65536
set R=131072
set S=262144
set T=524288
set U=1048576
set V=2097152
set W=4194304
set X=8388608
set Y=16777216
set Z=33554432
:yincang
color 07
cls
echo.
echo == 隐藏你电脑中的磁盘 ==
echo.
echo --------------------------------------------------------------------------
echo.
echo 隐藏磁盘格式为:
echo.
echo 输入第1个盘符、回车、第2个盘符、回车、第3个盘符.... 回车 再回车 完成。
echo.
echo 例1:想要隐藏C盘,那么就输入 C 回车,再回车 完成。
echo.
echo 例2:隐藏多个磁盘 C盘D盘F盘,那么就输入 C 回车 D 回车 F 回车 再回车 完成。
echo.
echo “回车”键就是“Enter”键, 回车 就是按 Enetr 键确认的意思。
echo.
echo 恢复隐藏的硬盘请输入 . 返回上一页,然后输入 -3 回车即可...
echo.
echo ---------------------------------------------------------------------------
echo.
echo [.] 返回上一页
echo.
echo.
set chongfu=%drives%
set /a panfu=%panfu%+1
set /p drives=请输入第 %panfu% 个盘符:
if /i "%drives%"=="" (goto :Kong)
if /i "%drives%"=="%chongfu%" (goto :regkey)
if /i "%drives%"=="." (cls &goto :system1)
if /i "%drives%"=="A" (set dword=%A% &goto :yunsuan)
if /i "%drives%"=="B" (set dword=%B% &goto :yunsuan)
if /i "%drives%"=="C" (set dword=%C% &goto :yunsuan)
if /i "%drives%"=="D" (set dword=%D% &goto :yunsuan)
if /i "%drives%"=="E" (set dword=%E% &goto :yunsuan)
if /i "%drives%"=="F" (set dword=%F% &goto :yunsuan)
if /i "%drives%"=="G" (set dword=%G% &goto :yunsuan)
if /i "%drives%"=="H" (set dword=%H% &goto :yunsuan)
if /i "%drives%"=="I" (set dword=%I% &goto :yunsuan)
if /i "%drives%"=="J" (set dword=%J% &goto :yunsuan)
if /i "%drives%"=="K" (set dword=%K% &goto :yunsuan)
if /i "%drives%"=="L" (set dword=%L% &goto :yunsuan)
if /i "%drives%"=="M" (set dword=%M% &goto :yunsuan)
if /i "%drives%"=="N" (set dword=%N% &goto :yunsuan)
if /i "%drives%"=="O" (set dword=%O% &goto :yunsuan)
if /i "%drives%"=="P" (set dword=%P% &goto :yunsuan)
if /i "%drives%"=="Q" (set dword=%Q% &goto :yunsuan)
if /i "%drives%"=="R" (set dword=%R% &goto :yunsuan)
if /i "%drives%"=="S" (set dword=%S% &goto :yunsuan)
if /i "%drives%"=="T" (set dword=%T% &goto :yunsuan)
if /i "%drives%"=="U" (set dword=%U% &goto :yunsuan)
if /i "%drives%"=="V" (set dword=%V% &goto :yunsuan)
if /i "%drives%"=="W" (set dword=%W% &goto :yunsuan)
if /i "%drives%"=="X" (set dword=%X% &goto :yunsuan)
if /i "%drives%"=="Y" (set dword=%Y% &goto :yunsuan)
if /i "%drives%"=="Z" (set dword=%Z% &goto :yunsuan)
if /i "%drives%"=="ALL" (CLS &goto :Alldrive)
:Kong
echo.
echo 错误!没有输入盘符或不能识别的盘符格式,请重新输入...
echo.
pause >nul &cls
goto :drive
:yunsuan
set dwords=%dword%
set /a times=times+%dwords%
goto :yincang
:regkey
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDrives /t REG_DWORD /d %times% /f >nul
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v NoDrives /t REG_DWORD /d %times% /f >nul
echo.
echo 以成功隐藏磁盘,注销或重新启动生效...
echo.
echo 按任意键返回... &pause >nul
endlocal
goto :system1
:Undrive
echo.
echo 注意这里只能一次恢复全部隐藏的磁盘,而不能选择性恢复...
echo.
echo 按任意恢复所有隐藏的磁盘...
pause >nul
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDrives /F >nul
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /v NoDrives /F >nul
echo.
echo 已全部取消隐藏,注销或重新启动生效...
echo.
echo 按任意键返回...
pause >nul
goto :system1
:jinyongchengxu
title WinCMD 工具这里可以禁用或允许某指定程序! 欢迎使用 WinCMD 工具!
echo.
echo [1] 禁用指定程序 [2] 只允许启动指定程序
echo.
echo.
set /p ChengXuRun=请输入你的选择:
if /i "%ChengXuRun%"=="1" (set zhuangtai=DisallowRun&set xianshi=禁止&cls &goto jinyongchengxu1)
if /i "%ChengXuRun%"=="2" (set zhuangtai=RestrictRun&set xianshi=只允许&cls &goto jinyongchengxu1)
echo.
echo 选择错误,请重新选择...
pause >nul
cls &goto jinyongchengxu
:jinyongchengxu1
cls &echo.
echo 操作很简单,你只要在这里输入你%xianshi%的程序名称...
echo.
echo -----------------------------------------------------------------------------
echo 例如:想%xianshi%启动QQ,那么就输入QQ.exe回车,再输入一个序号回车就完成了。
echo.
echo 说明:必须是原程序名,快捷方式名无效,如输入 QQ.exe 有效,输入 腾讯QQ 无效。
echo.
echo 输入的程序名必须有扩展名,如 .exe 输入QQ.exe 有效,输入 QQ 无效。
echo.
echo 序号必须是一位或多位阿拉拍数字,如 1,2,3 或 11,12,13 等。
echo.
echo 如重复使用同一序号,那么第二次的值将会覆盖第一次的值。
echo -----------------------------------------------------------------------------
echo [C] 查看%xianshi%的程序 [R] 删除%xianshi%的程序
echo -----------------------------------------------------------------------------
echo [H] 帮助 [.] 返回 [..] 返回首页 [0] 退出
echo -----------------------------------------------------------------------------
echo.
echo.
set /p jinyongCX=请输入程序名称:
if /i "%jinyongCX%"=="C" (cls &goto jinyongCK)
if /i "%jinyongCX%"=="R" (cls &goto jinyongHF)
if /i "%jinyongCX%"=="." (cls &goto :system1)
if /i "%jinyongCX%"==".." (cls &goto :return)
if /i "%jinyongCX%"=="0" (exit)
if /i "%jinyongCX%"=="H" (cls &goto jinyongchengxu1)
set /p jinyongxh=请输入序号(必需阿拉伯数字):
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v %zhuangtai% /t REG_DWORD /d 1 /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\%zhuangtai% /v %jinyongxh% /t REG_SZ /d %jinyongCX% /f
echo.
echo 以成功完成对 %jinyongCX% 禁用,第一次使用可能要重启或注销生效...
pause >nul
cls &goto :jinyongchengxu1
:jinyongCK
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\%zhuangtai% >"%temp%\~jinyongCK.txt"
echo 序号 %xianshi%的程序名 >"%temp%\~jinyongCK1.txt"
echo ↓ ↓ >>"%temp%\~jinyongCK1.txt"
for /f "skip=4 delims=" %%i in ('type "%temp%\~jinyongCK.txt"') do echo %%i >>"%temp%\~jinyongCK1.txt"
for /f "delims=" %%i in ('type "%temp%\~jinyongCK1.txt"') do echo %%i
pause >nul
cls &goto :jinyongchengxu1
:jinyongHF
reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\%zhuangtai% >"%temp%\~jinyongCK.txt"
echo 序号 %xianshi%的程序名 >"%temp%\~jinyongCK1.txt"
echo ↓ ↓ >>"%temp%\~jinyongCK1.txt"
for /f "skip=4 delims=" %%i in ('type "%temp%\~jinyongCK.txt"') do echo %%i >>"%temp%\~jinyongCK1.txt"
for /f "delims=" %%i in ('type "%temp%\~jinyongCK1.txt"') do echo %%i
echo.
echo ----------------------------------------------------------------------
echo 以上为以被%xianshi%的程序的序号的名称的列表
echo.
echo 要删除%xianshi%的程序只要输入该程序相对应的序号回车即可。
echo.
echo [.] 返回 [0] 退出
echo.
set /p jingyonghf=请输入%xianshi%程序的序号:
if /i "%jingyonghf%"=="." (cls &goto jinyongchengxu1)
if /i "%jingyonghf%"=="0" (exit)
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\%zhuangtai% /v %jingyonghf% /f >nul
echo.
echo 以成功完成操用,按任意键返回...
pause >nul
cls &goto :jinyongchengxu1
:qitajinyong
title WinCMD 工具帮你禁用一些系统项目 欢迎使用 WinCMD 工具!
cls & echo.
echo == 选择要禁用或隐藏的桌面相关项回车即可 ==
echo.
echo ---------------------------------------------------------------------------
echo.
echo [1] 隐藏系统右键菜单 [6] 隐藏桌面“我的电脑”
echo.
echo [2] 隐藏任务栏右键 [7] 隐藏桌面“网上邻居”
echo.
echo [3] 隐藏我的电脑右键属性 [8] 隐藏桌面“回收站”
echo.
echo [4] 隐藏 IE 右键属性 [9] 隐藏桌面“IE 浏览器”
echo.
echo [5] 隐藏桌面“我的文档” [0] 退出
echo.
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p qitajinyong=请输入你的选择:
if /i "%qitajinyong%"=="1" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoViewContextMenu /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoViewContextMenu /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="-1" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoViewContextMenu /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoViewContextMenu /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="2" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoTrayContextMenu /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoTrayContextMenu /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="-2" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoTrayContextMenu /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoTrayContextMenu /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="5" (
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{450D8FBA-AD25-11D0-98A8-0800361B1103} /f >nul
echo. &echo 执行完必,刷新查看... & pause & goto :qitajinyong
)
if /i "%qitajinyong%"=="-5" (
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{450D8FBA-AD25-11D0-98A8-0800361B1103} /f >nul
echo. &echo 执行完必,刷新查看... & pause & goto :qitajinyong
)
if /i "%qitajinyong%"=="6" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="-6" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="7" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoNetHooD /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoNetHooD /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="-7" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoNetHooD /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoNetHooD /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :qitajinyong
)
if /i "%qitajinyong%"=="8" (
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E} /f >nul
echo. & echo 执行完必,刷新查看... & pause & goto :qitajinyong
)
if /i "%qitajinyong%"=="-8" (
reg Add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}" /V 回收站 /t REG_SZ /d 回收站 /f >nul
echo. & echo 执行完必,重启生效... & pause & goto :qitajinyong
)
if /i "%qitajinyong%"=="9" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoInternetIcon /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoInternetIcon /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="-9" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoInternetIcon /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoInternetIcon /F >nul
echo 恢复隐藏完必,重启或注销生效... &echo. &pause &cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要系统中右键菜单失效就选择“隐藏系统右键菜单”项那么就输入 1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要恢复隐藏的“系统右键菜单”那么就输入 -1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :qitajinyong
)
if /i "%qitajinyong%"=="0" (exit)
if /i "%qitajinyong%"=="." (cls &goto :system1)
if /i "%qitajinyong%"==".." (cls &goto :return)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto qitajinyong
:xuanxiangka
title 选项卡项目禁用 欢迎使用 WinCMD 工具!
cls & echo.
echo == 选择要禁用或隐藏的属性选项卡项 ==
echo.
echo ---------------------------------------------------------------------------
echo [A] 显示属性 [B] Internet属性 [C] 系统属性 [D] 文件夹选项
echo.
echo [A1] 主题 [B1] 常规* [C1] 常规* [D1] 常规*
echo.
echo [A2] 桌面 [B2] 安全* [C2] 计算机名* [D2] 查看*
echo.
echo [A3] 屏幕保护程序 [B3] 隐私* [C3] 硬件* [D3] 文件类型*
echo.
echo [A4] 外观 [B4] 内容* [C4] 高级* [D4] 脱机文件*
echo.
echo [A5] 设置 [B5] 连接* [C5] 系统还原* [D5]
echo.
echo [A6] 禁用更改壁纸 [B6] 程序* [C6] 自动更新* [D6]
echo.
echo [A7] [B7] 高级* [C7] 远程* [D7]
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
set /p xuanxiangka=请输入你的选择:
if /i "%xuanxiangka%"=="A" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispCPL /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispCPL /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispCPL /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispCPL /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A1" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoThemesTab /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoThemesTab /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A1" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoThemesTab /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoThemesTab /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A2" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispBackgroundPage /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispBackgroundPage /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A2" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispBackgroundPage /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispBackgroundPage /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A3" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispScrSavPage /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispScrSavPage /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A3" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispScrSavPage /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispScrSavPage /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A4" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispAppearancePage /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispAppearancePage /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A4" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispAppearancePage /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispAppearancePage /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A5" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispSettingsPage /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /v NoDispSettingsPage /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A5" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispSettingsPage /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\system /V NoDispSettingsPage /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="A6" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop /v NoChangingWallPaper /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-A6" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop /V NoChangingWallPaper /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="B" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFolderOptions /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFolderOptions /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-B" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFolderOptions /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoFolderOptions /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="C" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoPropertiesMyComputer /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoPropertiesMyComputer /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-C" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoPropertiesMyComputer /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoPropertiesMyComputer /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="D" (
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetFolders /t REG_DWORD /d 1 /f >nul
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoSetFolders /t REG_DWORD /d 1 /f >nul
echo 执行完必,重启或注销生效... &echo. &pause &cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="-D" (
Reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetFolders /F >nul
Reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSetFolders /F >nul
cls & echo. & echo 执行完必,重启生效... & echo. & pause & goto :xuanxiangka
)
if /i "%xuanxiangka%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要隐藏显示属性里的“桌面”选项卡那么就输入 A2 回车即可。在桌面点右键选属性看看里面的桌面项是不是没有了? >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要恢复显示属性里的“桌面”选项卡那么就输入 -A2 回车即可。 在桌面点右键选属性看看里面的桌面项是不是又回来了?>>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 如果只选 A 的话那么就是禁用显示属性,显示属性将不能再打开。在桌面点右键选属性看看是不是被禁用了?要恢复 -A 即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :xuanxiangka
)
if /i "%xuanxiangka%"=="0" (exit)
if /i "%xuanxiangka%"=="." (cls &goto :system1)
if /i "%xuanxiangka%"==".." (cls &goto :return)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto :xuanxiangka
:xiufu
cls & color 0a
title WinCMD 工具帮你修复一些常见网络及系统问题 欢迎使用 WinCMD 工具!
if not exist %windir%\Wincmd\xiufu.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... & pause >nul &exit
for /f %%i in (%windir%\Wincmd\xiufu.dat) do if /i "%%i"=="0" (goto :xiufu1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... & pause & exit
@set /p shc= 进入该项需要密码,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :xiufu1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng 未完待续
[ Last edited by plp626 on 2008-4-29 at 09:20 PM ]
|
山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-3-21 19:52 |
|
|
plp626
银牌会员
钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第
2 楼』:
上接"goto :gongneng"
:xiufu1
color 0B
cls & echo.
echo -== IE修复及系统及优化 ==-
echo.
echo ---------------------------------------------------------------------------
echo Internet Explorer 相关项 系统相关项
echo.
echo [1] 修复IE无法打开网页 [6] 修复常用文件打开方式
echo.
echo [2] 全面修复IE问题 [7] 系统还原
echo.
echo [3] 修复Winsock (xp)通过 [8] 常用系统程序或文件→
echo.
echo [4] 修复IFEO之XP系统专用 [9] 系统服务备份及优化→
echo.
echo [5] 修复系统无法进入安全模式 [0] 退出
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p xiufu=请输入你的选择:
if /i "%xiufu%"=="1" (cls &goto :xfwy)
if /i "%xiufu%"=="2" (cls &goto :iexf)
if /i "%xiufu%"=="3" (cls &goto :Winsock)
if /i "%xiufu%"=="4" (cls &goto :ifeo)
if /i "%xiufu%"=="5" (cls &goto :aqms)
if /i "%xiufu%"=="6" (cls &goto :xfwj)
if /i "%xiufu%"=="7" (cls &goto :xthy)
if /i "%xiufu%"=="8" (cls &call Winsystemfile.exe &cls &goto :xiufu1)
if /i "%xiufu%"=="9" (cls &goto :yhfw)
if /i "%xiufu%"=="H" (cls &help)
if /i "%xiufu%"=="." (cls &goto :gongneng)
if /i "%xiufu%"==".." (cls &goto :return)
if /i "%xiufu%"=="0" (exit)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto :xiufu1
:xfwy
echo.
echo 说明:IE无法打开网页的情况有很多.
echo.
echo 例如:防火墙安全等级过高、手动指定了IP、与IE有关的系统文件被更换或损坏等等
echo.
echo 以上情况都需要手动更改或重装文件,
echo.
echo WinCMD 工具只修复IE被某些程序或病毒破坏了DLL连接而无法打开网页的情况。
echo.
echo 按任意键开始重建IE连接库...
pause >nul
echo.
echo 正在重建IE连接库请稍后...
echo.
echo.
rem 解决IE无法打开新窗口问题。再试试用鼠标右键选择“在新窗口打开”
if not exist %windir%\system32\actxprxy.dll echo 系统找不到actxprxy.dll文件无法完成此项修复...
regsvr32 /s actxprxy.dll &echo ActiveX控件COM接口文件... OK &echo.
if not exist %windir%\system32\shdocvw.dll echo 系统找不到shdocvw.dll文件无法完成此项修复...
regsvr32 /s shdocvw.dll &echo Windows应用程序添加基础文件和网络操作相关模块... OK &echo.
rem 解决IE无法打开搜索页问题
if not exist %windir%\system32\mshtml.dll echo 系统找不到mshtml.dll文件无法完成此项修复...
regsvr32 /s mshtml.dll &echo HTML解释器模块... OK &echo.
if not exist %windir%\system32\urlmon.dll echo 系统找不到urlmon.dll文件无法完成此项修复...
regsvr32 /s urlmon.dll &echo 微软Microsoft对象链接和嵌入相关模块... OK &echo.
if not exist %windir%\system32\browseui.dll echo 系统找不到browseui.dll文件无法完成此项修复...
regsvr32 /s browseui.dll &echo 浏览器UI界面的管理模块... OK &echo.
if not exist %windir%\system32\oleaut32.dll echo 系统找不到oleaut32.dll文件无法完成此项修复...
regsvr32 /s oleaut32.dll &echo 对象链接与嵌入OLE相关模块... OK &echo.
if not exist %windir%\system32\shell32.dll echo 系统找不到shell32.dll文件无法完成此项修复...
regsvr32 /s shell32.dll &echo Windows壳Shell相关应用程序接口动态链接库... OK &echo.
if not exist %windir%\system32\msjava.dll echo 系统找不到msjava.dll文件无法完成此项修复...
regsvr32 /s msjava.dll &echo Java程序COM接口支持相关模块... OK &echo.
goto :xfwy1
:xfwy1
echo.
echo.
echo 现在可以打开IE浏览器查看能否打开网页,如还不行请查看其它方法...
echo.
echo [1] 打开IE浏览器查看...
echo.
echo 按其它任意键返回...
echo.
set /p IE=请选择:
if /i "%IE%"=="1" (
taskkill /im iexplore.exe
start iexplore.exe
)
cls
goto :xiufu1
:iexf
echo.
echo 说明:全面修复包括了一些常见的IE问题
echo.
echo 如:无法打开网页,无法修改主页地址、无法输入地址、默认搜索错误、
echo.
echo IE下载禁用、网页右键菜单、恢复IE标题栏、恢复IE的默认页、注册表解锁、
echo.
echo 修复源文件查看禁用、等等....
echo.
echo.
echo [Y] 开始全面修复 [N] 返回
echo.
set /p iexf=请选择:
if /i "%iexf%"=="Y" (cls &goto :iexf1)
if /i "%iexf%"=="N" (cls &goto :xiufu1)
echo 选择错误请重新选择...
pause >nul &cls
goto :iexf
:iexf1
echo.
echo 正在恢复IE连接库请稍后...
rem 解决IE无法打开新窗口问题。再试试用鼠标右键选择“在新窗口打开”
if not exist %windir%\system32\actxprxy.dll SET Dllfile=actxprxy.dll &goto :NoDllfile
regsvr32 /s actxprxy.dll &echo ActiveX控件COM接口文件... OK
if not exist %windir%\system32\shdocvw.dll SET Dllfile=shdocvw.dll &goto :NoDllfile
regsvr32 /s shdocvw.dll &echo Windows应用程序添加基础文件和网络操作相关模块... OK
rem 解决IE无法打开搜索页问题
if not exist %windir%\system32\mshtml.dll SET Dllfile=mshtml.dll &goto :NoDllfile
regsvr32 /s mshtml.dll &echo HTML解释器模块... OK
if not exist %windir%\system32\urlmon.dll SET Dllfile=urlmon.dll &goto :NoDllfile
regsvr32 /s urlmon.dll &echo 微软Microsoft对象链接和嵌入相关模块... OK
if not exist %windir%\system32\browseui.dll SET Dllfile=browseui.dll &goto :NoDllfile
regsvr32 /s browseui.dll &echo 浏览器UI界面的管理模块... OK
if not exist %windir%\system32\oleaut32.dll SET Dllfile=oleaut32.dll &goto :NoDllfile
regsvr32 /s oleaut32.dll &echo 对象链接与嵌入OLE相关模块... OK
if not exist %windir%\system32\shell32.dll SET Dllfile=shell32.dll &goto :NoDllfile
regsvr32 /s shell32.dll &echo Windows壳Shell相关应用程序接口动态链接库... OK
if not exist %windir%\system32\msjava.dll SET Dllfile=msjava.dll &goto :NoDllfile
regsvr32 /s msjava.dll &echo Java程序COM接口支持相关模块... OK
goto :iexf2
:NoDllfile
echo.
echo 系统找不到%Dllfile%文件无法完成此项修复...
echo.
echo 按任意键继续其它修复...
pause >nul
:iexf2
echo.
echo 正在恢复IE默认安全...
ping 127.0.0.1 -n 1 >nul
echo ...OK
echo.
echo 正在恢复IE下载...
ping 127.0.0.1 -n 1 >nul
if exist IESafe\IESafe.reg regedit /s IESafe\IESafe.reg &echo ...OK &goto :iexfjx1
echo. &echo 错误!找不到文件请重新安装WinCMD程序... &pause >nul &exit
:iexfjx1
echo.
echo 正在恢复IE默认搜索...
ping 127.0.0.1 -n 1 >nul
if exist IESafe\IE默认搜索.reg regedit /s IESafe\IE默认搜索.reg &echo ...OK &goto :iexfjx2
echo. &echo 错误!找不到文件请重新安装WinCMD程序... &pause >nul &exit
:iexfjx2
echo.
echo 正在恢复IE主页地址栏被禁用...
ping 127.0.0.1 -n 1 >nul
reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v HomePage /t REG_DWORD /d 0 /f >nul &echo ...OK
echo.
echo 正在恢复主页锁定...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v Settings /f >nul &echo ...OK
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v Links /f >nul &echo ...OK
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v SecAddSites /f >nul &echo ...OK
echo.
echo 正在恢复IE的默认首页灰色按扭不可选...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v homepage /v >nul &echo ...OK
echo.
echo 正在恢复IE的首页为空白页...
ping 127.0.0.1 -n 1 >nul
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "about:blank" /f >nul &echo ...OK
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "about:blank" /f >nul &echo ...OK
echo.
echo 正在恢复被篡改的IE标题栏...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Window Title" /f >nul &echo ...OK
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Window Title" /f >nul &echo ...OK
echo.
echo 正在恢复起始页默认值...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Default_Page_URL" /f >nul &echo ...OK
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Default_Page_URL" /f >nul &echo ...OK
echo.
echo 正在恢复网页右键禁用...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" /v NoBrowserContextMenu /f >nul &echo ...OK
reg delete "HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Internet Explorer\Restrictions" /v NoBrowserContextMenu /f >nul &echo ...OK
echo.
echo 正在恢复网页原文件菜单查看...
ping 127.0.0.1 -n 1 >nul
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" /v NoViewSource /f >nul &echo ...OK
reg delete "HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Internet Explorer\Restrictions" /v NoViewSource /f >nul &echo ...OK
echo.
echo 注册表解锁...
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System /v Disableregistrytools /f >nul &echo ...OK
ping 127.0.0.1 -n 1 >nul
echo.
echo =============================================================
echo.
echo 提示错误找不开项是正常的,说明你的电脑没有被恶意修改...
echo.
echo IE全面修复完成按任意键返回...
pause >nul &cls
goto :xiufu1
:Winsock
title 欢迎使用WinCMD 修复Winsock
echo.
echo -== 修复Winsock ==-
echo.
echo ---------------------------------------------------------------------------
echo 本功能在Windows Xp 系统测试通过。
echo.
echo 说明:修复Winsock因病毒或恶意软件破坏或修改的Tcpip协议而无法上网的问题。
echo.
echo 注意:修复Winsock存在一定风险,在使用本功能前建议你先使用其它方法修复一
echo.
echo 下,除非你确定是Winsock出了问题,或已经试过其它方法不起作用。
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
echo [Y] 继续修复 [.] 返回上一页 [0] 退出
echo.
echo.
set /p Winsock=请选择:
if /i "%Winsock%"=="Y" (
if exist IESafe\Winsock.reg regedit /s Winsock.reg &echo. &echo 修复完必,按任意键返回... &pause >nul &cls &goto :xiufu1
echo.
echo 错误,系统找不到文件,请重新安装WinCMD后再试...
Pause >nul &cls
goto :xiufu1
)
if /i "%Winsock%"=="." (cls &goto :xiufu1)
if /i "%Winsock%"=="0" (exit)
echo.
echo 选择错误,请重新选择...
pause &cls
goto :Winsock
:ifeo
title 恢复IFEO注册映象
color Fc
echo.
echo -== 恢复IFEO注册映象 ==-
echo.
echo 脚本XP测试通过,按Y键开始恢复...
echo.
echo [Y] 恢复IFEO注册映象 [N] 返回
echo.
set /p ifeo=请选择:
if /i "%ifeo%"=="Y" (
echo 正在删除以前的映象...&echo.
regedit /s "IESafe\reg delete.reg"
echo 正在重建映象...&echo.
regedit /s "IESafe\reg add.reg"
regedit /s "IESafe\Image File Execution Options.reg"
echo 映象重建完成!按任意返回...
pause >nul &cls &goto :xiufu1
)
if /i "%ifeo%"=="N" (cls &goto :xiufu1)
echo.
echo 选择错误,请重新选择...
pause >nul &cls &goto :ifeo
:aqms
echo.
echo -== 系统安全模式修复 ==-
echo.
echo 一些病毒为保护自身从而破坏系统的安全模式,使用户无法进入安全模式
echo.
echo 无法对系统进行修复。本功能可以帮你修复系统安全模式。
echo.
echo [Y] 修复安全模式 [N] 返回
echo.
echo.
set /p aqms=请选择:
if /i "%aqms%"=="Y" (
if exist not IESafe\修复安全模式.reg echo 发生错误,找不到文件!请新安装WinCMD... &pause >nul &cls &goto :xiufu1
echo 正在修复安全模式... &ping 127.0.0.1 -n 2 >nul ®edit /s IESafe\修复安全模式.reg
echo.
echo 修复安必,按任意键返回...
pause >nul &cls &goto :xiufu1
)
if /i "%aqms%"=="N" (cls &goto :xiufu1)
echo.
echo 选择错误,请重新选择...
pause >nul &cls &goto :aqms
:xfwj
echo.
echo 说明:
echo.
echo 一些病毒利用更改系统文件打开方式的连接来实现自身的启动
echo.
echo 利用工具可以恢复系统常用文件的默认打开文式。
echo.
echo 按任意键开始执行...
pause >nul
rem BATfile
reg add HKEY_CLASSES_ROOT\batfile\shell\edit\command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\NOTEPAD.EXE %%1" /f >nul
reg add HKEY_CLASSES_ROOT\batfile\shell\open\command /ve /t REG_SZ /d "\"%%1\" %%*" /f >nul
echo. &echo 批处文件打开方式恢复默认... OK
rem CHMfile
reg add HKEY_CLASSES_ROOT\chm.file\shell\open\command /ve /t REG_SZ /d "\"C:\WINDOWS\hh.exe\" %%1" /f >nul
echo. &echo CHM 帮助文件打开方式恢复默认... OK
rem COMfile
reg add HKEY_CLASSES_ROOT\comfile\shell\open\command /ve /t REG_SZ /d "\"%%1\" %%*" /f >nul
echo. &echo COM 可执行文件打开方式恢复默认... OK
rem EXEfile
reg add HKEY_CLASSES_ROOT\exefile\shell\open\command /ve /t REG_SZ /d "\"%%1\" %%*" /f >nul
reg add HKEY_CLASSES_ROOT\exefile\shell\runas\command /ve /t REG_SZ /d "\"%%1\" %%*" /f >nul
echo. &echo EXE 可执行文件打开方式恢复默认... OK
rem HLPfile
reg add HKEY_CLASSES_ROOT\hlpfile\shell\open\command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\winhlp32.exe %%1" /f >nul
echo. &echo HLP 帮助文件打开方式恢复默认... OK
rem INFfile
reg add HKEY_CLASSES_ROOT\inffile\shell\open\command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\NOTEPAD.EXE %%1" /f >nul
echo. &echo 安装配置文件打开方式恢复默认... OK
rem INIfile
reg add HKEY_CLASSES_ROOT\inifile\shell\open\command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\NOTEPAD.EXE %%1" /f >nul
echo. &echo 系统配置文件打开方式恢复默认... OK
rem JSfile
reg add HKEY_CLASSES_ROOT\JSFile\Shell\Open\Command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\WScript.exe \"%%1\" %%*" /f >nul
echo. &echo JS 脚本文件打开方式恢复默认... OK
rem LNKfile
reg add HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046} /f >nul
echo. &echo 快捷方式文件打开方式恢复默认... OK
rem PIFfile
reg add HKEY_CLASSES_ROOT\piffile\shell\open\command /ve /t REG_SZ /d "\"%%1\" %%*" /f >nul
echo. &echo DOS的快捷方式文件打开方式恢复默认... OK
rem REGfile
reg add HKEY_CLASSES_ROOT\regfile\shell\open\command /ve /t REG_SZ /d "regedit.exe \"%%1\"" /f >nul
echo. &echo 注册表文件打开方式恢复默认... OK
rem SCRfile
reg add HKEY_CLASSES_ROOT\scrfile\shell\open\command /ve /t REG_SZ /d "\"%%1\" /S" /f >nul
echo. &echo 屏保文件打开方式恢复默认... OK
rem TXTfile
reg add HKEY_CLASSES_ROOT\txtfile\shell\open\command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\NOTEPAD.EXE %%1" /f >nul
echo. &echo 文本文件打开方式恢复默认... OK
rem VBSfile
reg add HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\WScript.exe \"%%1\" %%*" /f >nul
echo. &echo 脚本文件打开方式恢复默认... OK
echo. &echo.
echo 恢复完成按任意键返回...
pause >nul &cls
goto :xiufu1
:xthy
start %windir%\system32\Restore\rstrui.exe
goto :xiufu1
:bffw
echo.
echo 说明:系统服务是一种应用程序类型,它在后台运行。它执行指定系统功能的程序、
echo.
echo 例程或进程,以便支持其他程序,服务应用程序通常可以在本地和通过网络为
echo.
echo 用户提供一些功能,例如客户端/服务器应用程序、Web服务器、数据库服务器
echo.
echo 以及其他基于服务器的应用程序。
echo.
echo.
set /p bffw= [Y] 备份当系统服务 [N] 返回 请选择:
if /i "%bffw%"=="Y" (goto :bffw1)
if /i "%bffw%"=="N" (cls &goto :xiufu1)
echo 选择错误请重新选择...
pause >nul &cls
goto :bffw
:bffw1
rem get current date and time
for /f "tokens=1, 2, 3, 4 delims=-/. " %%j in ('Date /T') do set FILENAME=系统服务备份_%%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.
echo 开始%FILENAME% 请稍后...
rem save service start state into batch file
rem
echo @echo 这是WinCMD在 %DATE% %TIME% 创建的系统服务备份 >"%userprofile%\桌面"\"%FILENAME%"
echo @echo. >>"%userprofile%\桌面"\"%FILENAME%"
echo @echo 按任意键开始恢复备份的系统服务。 >>"%userprofile%\桌面"\"%FILENAME%"
echo @echo. >>"%userprofile%\桌面"\"%FILENAME%"
echo @pause >>"%userprofile%\桌面"\"%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 >>"%userprofile%\桌面"\"%FILENAME%")
echo @echo. >>"%userprofile%\桌面"\"%FILENAME%"
echo @echo. >>"%userprofile%\桌面"\"%FILENAME%"
echo @echo 备份恢复完必按任意键退出... >>"%userprofile%\桌面"\"%FILENAME%"
echo @pause >nul >>"%userprofile%\桌面"\"%FILENAME%"
echo @del %%0 >>"%userprofile%\桌面"\"%FILENAME%"
del tmpsrv.txt
del tmpstype.txt
cls &echo.
echo 当前系统服务备份完必己保存在你的桌面。
echo.
echo 请妥善保存备份的系统服务,如系统服务出现问题可及时用此备份恢复...
echo.
echo 按任意键返回...
pause >nul &cls
goto :xiufu1
:yhfw
echo.
echo 说明:优化系统服务是指把一些用户不常用或不用的服务程序或进程停用,来减少系统
echo.
echo 资源的利用率,从而达到加速系统运行的目地。
echo.
echo.
echo 注:在优化或者改为系统默认服务之前作者强烈建意先备份当前服务...
echo.
echo 防止在服务优化或改为默认之后其些程序不能正常使用,而做为服务还原之用。
echo.
echo.
echo [1] 优化系统服务 [2] XP默认服务 [3] 备份当前服务 [.] 返回
echo.
echo.
set /p yhfw= 请选择:
if /i "%yhfw%"=="1" (goto :yhfw1)
if /i "%yhfw%"=="2" (goto :morenfuwu)
if /i "%yhfw%"=="3" (cls &goto :bffw)
if /i "%yhfw%"=="." (cls &goto :xiufu1)
echo.
echo 选择错误,请重新选择...
pause >nul &cls
goto :yhfw
:yhfw1
sc config Alerter start= DISABLED
sc config ALG start= DISABLED
sc config AppMgmt start= DEMAND
sc config AudioSrv start= AUTO
sc config BITS start= DISABLED
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= AUTO
sc config dmadmin start= DEMAND
sc config dmserver start= AUTO
sc config Dnscache start= AUTO
sc config ERSvc start= DISABLED
sc config Eventlog start= AUTO
sc config EventSystem start= DEMAND
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 PlugPlay start= AUTO
sc config PolicyAgent start= DEMAND
sc config ProtectedStorage start= AUTO
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= DISABLED
sc config RpcSs start= AUTO
sc config SamSs start= AUTO
sc config SCardSvr start= DISABLED
sc config Schedule start= AUTO
sc config seclogon start= AUTO
sc config SENS start= AUTO
sc config SharedAccess start= DEMAND
sc config ShellHWDetection start= AUTO
sc config Spooler start= AUTO
sc config stisvc start= DEMAND
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 TrkWks start= DISABLED
sc config UMWdf 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 xmlprov start= DEMAND
sc config DcomLaunch start= AUTO
sc config FastUserSwitchingCompatibility start= DEMAND
sc config srservice start= DISABLED
sc config SSDPSRV start= DISABLED
sc config TlntSvr start= DISABLED
sc config upnphost start= DEMAND
sc config wscsvc start= DISABLED
echo.
echo.
echo 服务优化完必按任意键返回...
pause >nul
goto :yhfw
:morenfuwu
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= AUTO
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 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.
echo 已恢复到XP默认服务,按任意键返回...
pause >nul
goto :yhfw
:Mouse
cls & color 0a
title 欢迎使用 WinCMD 工具! 帮你制定个性鼠标右键
if not exist %windir%\Wincmd\shubiao.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... & pause >nul &exit
for /f %%i in (%windir%\Wincmd\shubiao.dat) do if /i "%%i"=="0" (goto :Mouse1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... & pause & exit
@set /p shc= 更改鼠标及右键菜单项,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :Mouse1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng
:Mouse1
cls & echo.
echo -- 欢迎使用鼠标及右键菜单项, 帮你定制个性的右键菜单 --
echo.
echo ---------------------------------------------------------------------------
echo.
echo [1] 在鼠标右键添加“快速关机” [6] 在鼠标右键添加“鼠标录制”
echo.
echo [2] 在鼠标右键添加“快速重启” [7] 在鼠标右键添加“清理回收站”
echo.
echo [3] 在鼠标右键添加“锁闭当前用户” [8]
echo.
echo [4] 在鼠标右键添加“打开光驱” [9] 其它鼠标相关项→
echo.
echo [5] 在鼠标右键添加“关闭光驱” [0] 退出
echo.
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p Mouse=请输入你的选择:
if /i "%Mouse%"=="1" (
reg add HKEY_CLASSES_ROOT\*\shell\快速关机\command /ve /t REG_SZ /d "%WincmdPath%\Annex\fastshut.exe" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\快速关机\command /ve /t REG_SZ /d "%WincmdPath%\Annex\fastshut.exe" /f >nul
echo. &echo 以将快速关机添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-1" (
reg delete HKEY_CLASSES_ROOT\*\shell\快速关机 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\快速关机 /f >nul
cls &echo. &echo 以删除右键快速关机项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="2" (
reg add HKEY_CLASSES_ROOT\*\shell\快速重启\command /ve /t REG_SZ /d "%WincmdPath%\Annex\srshut.exe /reboot" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\快速重启\command /ve /t REG_SZ /d "%WincmdPath%\Annex\srshut.exe /reboot" /f >nul
echo. &echo 以将重新启动添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-2" (
reg delete HKEY_CLASSES_ROOT\*\shell\快速重启 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\快速重启 /f >nul
cls &echo. &echo 以删除右键快速重启项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="3" (
reg add HKEY_CLASSES_ROOT\*\shell\锁闭用户\command /ve /t REG_SZ /d "rundll32.Exe user32.dll LockWorkStation" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\锁闭用户\command /ve /t REG_SZ /d "rundll32.Exe user32.dll LockWorkStation" /f >nul
echo. &echo 以将锁闭用户添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-3" (
reg delete HKEY_CLASSES_ROOT\*\shell\锁闭用户 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\锁闭用户 /f >nul
cls &echo. &echo 以删除右键锁闭用户项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="4" (
reg add HKEY_CLASSES_ROOT\*\shell\打开光驱\command /ve /t REG_SZ /d "%WincmdPath%\Annex\Kcd.exe" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\打开光驱\command /ve /t REG_SZ /d "%WincmdPath%\Annex\Kcd.exe" /f >nul
echo. &echo 以将开光驱项添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-4" (
reg delete HKEY_CLASSES_ROOT\*\shell\打开光驱 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\打开光驱 /f >nul
cls &echo. &echo 以删除右键打开光驱项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="5" (
reg add HKEY_CLASSES_ROOT\*\shell\关闭光驱\command /ve /t REG_SZ /d "%WincmdPath%\Annex\Gcd.exe" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\关闭光驱\command /ve /t REG_SZ /d "%WincmdPath%\Annex\Gcd.exe" /f >nul
echo. &echo 以将关闭光驱添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-5" (
reg delete HKEY_CLASSES_ROOT\*\shell\关闭光驱 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\关闭光驱 /f >nul
cls &echo. &echo 以删除右键关闭光驱项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="6" (
reg add HKEY_CLASSES_ROOT\*\shell\鼠标录制\command /ve /t REG_SZ /d "%WincmdPath%\Annex\PcRceord.exe" /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shell\鼠标录制\command /ve /t REG_SZ /d "%WincmdPath%\Annex\PcRceord.exe" /f >nul
echo. &echo 以将鼠标录制添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-6" (
reg delete HKEY_CLASSES_ROOT\*\shell\鼠标录制 /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shell\鼠标录制 /f >nul
cls &echo. &echo 以删除右键鼠标录制项,按任意键返回 &echo. &pause &goto :Mouse1
)
if /i "%Mouse%"=="7" (
reg add HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E} /ve /f >nul
reg add HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E} /ve /f >nul
echo. &echo 以将清理回收站添加到右键菜单 &echo. & pause & goto :Mouse1
)
if /i "%Mouse%"=="-7" (
reg delete HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E} /f >nul
reg delete HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\{645FF040-5081-101B-9F08-00AA002F954E} /f >nul
cls &echo. &echo 以删除右键清理回收站项,按任意键返回 &echo. &pause >nul &goto :Mouse1
)
if /i "%Mouse%"=="9" (goto :gaoguai)
if /i "%Mouse%"==".." (cls &goto :return)
if /i "%Mouse%"=="." (cls &goto :gongneng)
if /i "%Mouse%"=="0" (exit)
if /i "%Mouse%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“在鼠标右键添加“打开光驱””项那么就输入 4 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 那么回车后让我们回到桌面或进入磁盘在某个文件或文件夹上点击鼠标右键,看看右键菜单中是不是多了个“打开光驱”呢?试试看吧。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 那么如何删除右键菜单中的“打开光驱”项呢?很简单就是在刚才输入 4 的地方输入 -4 回车,就是取消该项的意思。试试看吧。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Mouse1
)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :Mouse1
:KVRav
cls & color 0a
title WinCMD 工具帮你修复一些常见网络及系统问题 欢迎使用 WinCMD 工具!
if not exist %windir%\Wincmd\KVRav.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... &pause >nul &exit
for /f %%i in (%windir%\Wincmd\KVRav.dat) do if /i "%%i"=="0" (goto :KVRavUpdate)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... &pause &exit
@set /p shc= 进入该项需要密码,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :KVRavUpdate)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng
:KVRavUpdate
title 这里作者收集了江民和瑞星两大国内知名杀毒软件。及每周都更新的离线升级包。
if not exist %windir%\wincmd\KVRavzc.dat echo 0 >%windir%\wincmd\KVRavzc.dat
for /f %%i in (%windir%\wincmd\KVRavzc.dat) do if /i "%%i"=="0" (goto :kvjixui)
:KVRavUpdate1
if exist %windir%\wincmd\KVRavKeyOk.dat echo 以经注册过,继续将清除原来的注册信息... &echo.&pause &del /f/q %windir%\wincmd\KVRavKeyOk.dat >nul
echo %date% >%temp%\~date.txt
for /f "delims=- tokens=1,2,3" %%i in (%temp%\~date.txt) do set i=%%i&set j=%%j&set k=%%k
echo %i%%j%%k% >%temp%\~date.txt
for /f "delims= " %%i in (%temp%\~date.txt) do set i=%%i
echo %i% >%temp%\~date.txt
echo %time% >%temp%\~time.txt
for /f "delims=: tokens=1,2,3" %%i in (%temp%\~time.txt) do set i=%%i&set j=%%j&set k=%%k
echo %i%%j%%k% >%temp%\~time.txt
for /f "tokens=1" %%i in (%temp%\~date.txt) do set date=%%i
for /f "delims=. tokens=1" %%i in (%temp%\~time.txt) do set time=%%i
set /a sysnum=%date%+%time%
set /p usenum=请输入用户码:
if %usenum% geq 9999 echo 错误的格式请重新输入... &pause >nul &cls&goto :KVRavUpdate1
if %usenum% leq 999 echo 错误的格式请重新输入... &pause >nul &cls&goto :KVRavUpdate1
set /a sysnum=%sysnum%/1234*%usenum%
echo 机器码为:%sysnum%
echo 请将此机器码发给作者算出验证码...&echo.
set /a KVRavKey=%sysnum%*314/2-%sysnum%&rem KVRavKey
echo %KVRavKey% >%windir%\KVRavKey.dat
set /p useravkey=请输入注册码:
for /f "tokens=1" %%i in (%windir%\KVRavKey.dat) do if %%i equ %useravkey% goto :KVRavKeyOK
echo. &echo 验证码错误,无法注册,按任意键返回... &pause >nul &cls
goto :KVRavUpdate
:KVRavKeyOK
echo 注册成功!按任意键继续... &echo 1 >%windir%\wincmd\KVRavKeyOk.dat &pause >nul &cls
:kvjixui
cls
echo.
echo -== 杀毒不用愁,杀毒软件及升级 ==-
echo.
echo ----------------------------------------------------------------------------
echo.
echo [1] 江民kv2007官方正式版 [6] 瑞星杀毒软件2007下载
echo.
echo [2] KV2007最新病毒库升级包 [7] 瑞星2007升级包
echo.
echo [3] KV2007最新基础升级包 [8] 瑞星2007官方完整升级包
echo.
echo [4] [9]
echo.
echo [5] [0] 退出
echo.
echo ----------------------------------------------------------------------------
echo [H] 帮助 [Z] 注册 [.] 返回上一页 [..] 返回首页
echo ----------------------------------------------------------------------------
echo.
echo.
set /p SDUpdate= 请选择:
if /i "%SDUpdate%"=="Z" (cls&echo 开始注册,请牢记你输入的这四位数以便以后用到。&echo.&goto :KVRavUpdate1)
if /i "%SDUpdate%"=="." (cls &goto :gongneng)
if /i "%SDUpdate%"==".." (cls &goto :return)
if /i "%SDUpdate%"=="0" (exit)
if not exist %windir%\wincmd\KVRavKeyOk.dat echo. &echo 错误,你还没有注册请注册后使用本工具... &pause >nul &cls &goto :KVRavUpdate
for /f %%i in (%windir%\wincmd\KVRavKeyOk.dat) do if /i "%%i"=="0" (echo. &echo 错误,你还没有注册请注册后使用本工具... &pause >nul &cls &goto :KVRavUpdate)
if /i "%SDUpdate%"=="1" (
start iexplore "http://www.366tian.net/soft/DownSoft/get.php?softid=3471&pathid=0"
echo. &echo 开始下载最新病毒库KV2007官方正式版,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
if /i "%SDUpdate%"=="2" (
start iexplore http://soft1.366tian.net/07安全相关/01病毒防治/kv2007update.rar
echo. &echo 开始下载最新KV2007病毒库升级包,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
if /i "%SDUpdate%"=="3" (
start iexplore "http://www.366tian.net/soft/DownSoft/get.php?softid=3508&pathid=0"
echo. &echo 开始下载最新KV2007基础升级包,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
if /i "%SDUpdate%"=="6" (
start iexplore "http://www.366tian.net/soft/DownSoft/get.php?softid=3660&pathid=0"
echo.
echo 参考信息:以下为瑞星2007的安装序列号和ID号
echo.
echo 序列号:MI0TMS-5KG75M-QDDLS0-1VE200 ID:7AHRR6LPN34G
echo.
echo 序列号:080K3M-02050U-G0PVSC-AJE200 ID:6A94GZSK6F4R
echo.
echo 序列号:LAR226-LAMGGH-LAWPSD-A05200 ID:4AYN5PER7A4H
echo.
echo 序列号:B4NN4K-AQ5UQ5-2M1K6U-LJ4200 ID:RBSYQXHJ
echo.
echo 序列号:080K3M-02050U-G0PVSC-AJE200 ID:6A94GZSK6F4R
echo.
echo 序列号:616AJS-1G9IKV-PCBNS1-57E200 ID:6AUZ3WT3B44
echo.
echo 开始下载最新KV2007基础升级包,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
if /i "%SDUpdate%"=="7" (
start iexplore "http://www.366tian.net/soft/DownSoft/get.php?softid=2701&pathid=0"
echo. &echo 开始下载最新瑞星2007升级包,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
if /i "%SDUpdate%"=="8" (
start iexplore "http://www.366tian.net/soft/DownSoft/get.php?softid=2915&pathid=0"
echo. &echo 开始下载瑞星2007官方完整升级包,按任意键返回...
pause >nul &cls &goto :KVRavUpdate
)
echo.
echo 选择错误,请重新选择...
pause >nul
cls &goto :KVRavUpdate
:gaoguai
title 作者收集的一些有趣的小程序试试吧,可能有些会让你头痛唠!!! 欢迎使用 WinCMD 工具!
cls &echo.
echo ≡≡ 以下是作者收集的一些很搞怪的鼠标小程序很好玩的! ≡≡
echo.
echo ---------------------------------------------------------------------------
echo.
echo [1] 添加彩色汽泡星星效果 [6]
echo.
echo [2] 开始按扭跟随的鼠标 [7]
echo.
echo [3] [8]
echo.
echo [4] [9]
echo.
echo [5] [0] 退出
echo.
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p gaoguai=请输入你的选择:
if /i "%gaoguai%"=="1" (
if exist "%WincmdPath%\Annex\StarCursor.EXE" "%WincmdPath%\Annex\StarCursor.EXE" & goto :gaoguai
echo. &echo 发生错误!找不到文件,请重新安装... &echo. &pause &exit
)
if /i "%gaoguai%"=="2" (echo. &echo 由于此功能被一些杀毒软件检测为病毒,所以删除了该项... &echo. &pause &exit)
if /i "%gaoguai%"==".." (cls &goto :return)
if /i "%gaoguai%"=="." (cls &goto :Mouse1)
if /i "%gaoguai%"=="0" (exit)
if /i "%gaoguai%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择“给鼠标添加彩色汽泡星星效果”项那么就输入 1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 启动后如果本工具没有自动关闭,你可以用鼠标直接关闭。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 这里作者收集了一些有趣的与鼠标有关的小程序,有些杀毒程序可能会误认为是病毒,要清除它千万不要点确定。决无病毒请放心使用... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Mouse1
)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :gaoguai
:qitagongneng
title WinCMD 的功能扩展 欢迎使用 WinCMD 工具!
cls & color 0a
title 欢迎使用 WinCMD 工具! 帮你制定个性鼠标右键
if not exist %windir%\Wincmd\qitagn.dat echo 发生错误!数据文件丢失!请重新安装WinCMD工具!... & pause >nul &exit
for /f %%i in (%windir%\Wincmd\qitagn.dat) do if /i "%%i"=="0" (goto :qitagongneng1)
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... & pause & exit
@set /p shc= 更改鼠标及右键菜单项,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :qitagongneng1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng
:qitagongneng1
cls &echo.
echo ≡≡ WinCMD 的功能扩展 ≡≡
echo.
echo ---------------------------------------------------------------------------
echo.
echo [1] 台湾居民身份证计算 [6] 让IE变成多页浏览器
echo.
echo [2] 显示器测试工具 [7]
echo.
echo [3] 输入法位置调整工具 [8]
echo.
echo [4] 关闭跑跑无广告版 [9]
echo.
echo [5] 超强手动进程查杀工具 [0] 退出
echo.
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p qitagongneng=请选择:
if /i "%qitagongneng%"=="1" (cls &goto :shenfenzheng)
if /i "%qitagongneng%"=="2" (
if exist "%WincmdPath%\Annex\DisplayX.exe" "%WincmdPath%\Annex\DisplayX.exe" &cls &goto :qitagongneng1
echo. &echo 发生错误!找不到文件,请重新安装... &echo. &pause &exit
)
if /i "%qitagongneng%"=="3" (
if exist "%WincmdPath%\Annex\imetool.exe" "%WincmdPath%\Annex\imetool.exe" &cls &goto :qitagongneng1
echo. &echo 发生错误!找不到文件,请重新安装... &echo. &pause &exit
)
if /i "%qitagongneng%"=="4" (
if not exist 关闭跑跑无广告.exe echo. &echo 错误:找不到文件,可能是WinCMD安装出现问题,请重新安装... &pause >nul &exit
copy 关闭跑跑无广告.exe "%UserProfile%\桌面" /Y >nul
echo.
echo 以在桌面创建关闭跑跑无广告版程序...
echo.
echo 退出"跑跑卡丁车"游戏时直接打开这个程序关闭,不会出玩广告...
echo.
echo 按任意建返回...
pause >nul
cls &goto :qitagongneng1
)
if /i "%qitagongneng%"=="5" (goto :task)
if /i "%qitagongneng%"=="6" (cls &goto :duoyeIE)
if /i "%qitagongneng%"=="0" (exit)
if /i "%qitagongneng%"=="." (cls &goto :gongneng)
if /i "%qitagongneng%"==".." (cls &goto :return)
if /i "%qitagongneng%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要选择哪一项输入前面括号里的字符回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 例如:要选择登陆“台湾居民身份证计算”那么就输入 1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意只输入括号内的字符 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 这里作者收集了一些常用或实用网站作者会时常更新这些网址的。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :qitagongneng1
)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto :qitagongneng1
:shenfenzheng
color 0a
if not exist %Windir%\num.dat echo 4 >%Windir%\num.dat
for /f "tokens=1" %%A in ('type %Windir%\num.dat') do set cisu=%%A
echo.
echo 作者受权你使用程序%cisu%次!
if /i "%cisu%"=="0" (
echo.
echo 使用次数以到,要得到更多的使用次数请用本工具访问作者相册...
pause >nul
cls &goto :qitagongneng1
)
set /a cisu=%cisu%-1
echo.
echo 还有%cisu%次使用权!,按任意键继续...
echo %cisu% >%Windir%\num.dat
echo.
pause >nul
:starta
cls
set chengsu=8
set xuhao=0
set A=0
set M=0
set B=9
set N=9
set C=8
set P=8
set D=7
set Q=7
set E=6
set R=6
set F=5
set S=5
set G=4
set T=4
set H=3
set U=3
set J=2
set V=2
set K=1
set X=2
set L=1
set Y=1
echo.
echo == 台湾居民身份证计算 ==
echo.
echo.
echo [A]台 北 市 [M]南 投 縣 [B]台 中 市 [N]彰 化 縣
echo.
echo [C]基 隆 市 [P]雲 林 縣 [D]台 南 市 [Q]嘉 義 縣
echo.
echo [E]高 雄 市 [R]台 南 縣 [F]台 北 縣 [S]高 雄 縣
echo.
echo [G]宜 蘭 縣 [T]屏 东 縣 [H]桃 園 縣 [U]花 蓮 縣
echo.
echo [J]新 竹 縣 [V]台 东 縣 [K]苗 栗 縣 [X]澎 湖 縣
echo.
echo [L]台 中 縣 [Y]陽 明 山
echo.
echo.
echo [.] 返回
echo.
echo 必须是大写字母!!!
echo.
set /p diqu=请选择地区:
if /i "%diqu%"=="" (goto :diquerror)
if /i "%diqu%"=="." (goto :qitagongneng1)
echo %diqu% >"%userprofile%"\桌面\shenfen.txt
if %diqu% EQU A (echo %A% >diqu.txt &goto :xingb)
if %diqu% EQU B (echo %B% >diqu.txt &goto :xingb)
if %diqu% EQU C (echo %C% >diqu.txt &goto :xingb)
if %diqu% EQU D (echo %D% >diqu.txt &goto :xingb)
if %diqu% EQU E (echo %E% >diqu.txt &goto :xingb)
if %diqu% EQU F (echo %F% >diqu.txt &goto :xingb)
if %diqu% EQU G (echo %G% >diqu.txt &goto :xingb)
if %diqu% EQU H (echo %H% >diqu.txt &goto :xingb)
if %diqu% EQU J (echo %J% >diqu.txt &goto :xingb)
if %diqu% EQU K (echo %K% >diqu.txt &goto :xingb)
if %diqu% EQU L (echo %L% >diqu.txt &goto :xingb)
if %diqu% EQU M (echo %M% >diqu.txt &goto :xingb)
if %diqu% EQU N (echo %N% >diqu.txt &goto :xingb)
if %diqu% EQU P (echo %P% >diqu.txt &goto :xingb)
if %diqu% EQU Q (echo %Q% >diqu.txt &goto :xingb)
if %diqu% EQU R (echo %R% >diqu.txt &goto :xingb)
if %diqu% EQU S (echo %S% >diqu.txt &goto :xingb)
if %diqu% EQU T (echo %T% >diqu.txt &goto :xingb)
if %diqu% EQU U (echo %U% >diqu.txt &goto :xingb)
if %diqu% EQU V (echo %V% >diqu.txt &goto :xingb)
if %diqu% EQU X (echo %X% >diqu.txt &goto :xingb)
if %diqu% EQU Y (echo %Y% >diqu.txt &goto :xingb)
:diquerror
echo.
ECHO 错误! 选择请输入大写字母,重新选择...
pause >nul &cls
goto :starta
:xingb
cls &echo.
echo 请选择性别
echo.
echo [A] 男士 [B] 女士
echo.
set /p xingb=请选择性别:
if /i "%xingb%"=="A" (echo 8 >xingb.txt &echo 1 >>"%userprofile%"\桌面\shenfen.txt &goto :xulie)
if /i "%xingb%"=="B" (echo 6 >xingb.txt &echo 2 >>"%userprofile%"\桌面\shenfen.txt &goto :xulie)
ECHO 选择错误,请重新选择...
pause >nul &cls
goto :xingb
:xulie
cls
echo.
echo 每次输入一个0-9的数字 回车,直到完成即可。必须是数字
echo.
echo 例如:0 回车 0 回车 1 回车 1 回车 2 回车 0 回车 3.... 完成!
echo.
set /a xuhao=xuhao+1
set /a chengsu=%chengsu%-1
if %chengsu% EQU 0 goto :Wancheng
set /p xulie=请输入第%xuhao%个序列数:
if /i "%xulie%"=="" (echo 格式错误! 重新开始... &pause >nul &cls &goto :starta)
if %xulie% GTR 9 (echo 格式错误! 重新开始... &pause >nul &cls &goto :starta)
echo %xulie% >>"%userprofile%"\桌面\shenfen.txt
set /a xulie=%xulie%*%chengsu%
if %xulie% GTR 9 goto :dayu9
:fanhui
if %xuhao% GEQ 2 goto :xuhaodayu2
echo %xulie% >he.txt
for /f "tokens=1" %%I in ('type he.txt') Do set he=%%I
goto :xulie
:dayu9
set /a xuliea=%xulie%/10*10
set /a xulie=%xulie%-%xuliea%
goto :fanhui
:xuhaodayu2
for /f "tokens=1" %%I in ('type he.txt') Do set he=%%I
set /a he=%he%+%xulie%
if %he% GTR 9 goto :hedayu9
echo %he% >he.txt
goto :xulie
:hedayu9
set /a hea=%he%/10*10
set /a he=%he%-%hea%
echo %he% >he.txt
goto :xulie
:Wancheng
for /f "tokens=1" %%A in ('type xingb.txt') Do set xingb=%%A
for /f "tokens=1" %%B in ('type he.txt') Do set he=%%B
set /a he=%xingb%+%he%
if %he% GTR 9 goto :hedayu93
echo %he% >he.txt
:fanhiu3
for /f "tokens=1" %%A in ('type diqu.txt') Do set diqu=%%A
set /a he=%he%+%diqu%
if %he% GTR 9 goto :hedayu92
:fanhiu2
set /a jiancasu=9-%he%
echo %jiancasu% >>"%userprofile%"\桌面\shenfen.txt
echo. >>"%userprofile%"\桌面\shenfen.txt
echo. >>"%userprofile%"\桌面\shenfen.txt
echo 以上为标准台湾身份证格试... >>"%userprofile%"\桌面\shenfen.txt
echo. >>"%userprofile%"\桌面\shenfen.txt
echo 本程序由刘希英编译....>>"%userprofile%"\桌面\shenfen.txt
"%userprofile%"\桌面\shenfen.txt
del /q diqu.txt
del /q xingb.txt
del /q he.txt
goto :qitagongneng1
:hedayu92
set /a hea=%he%/10*10
set /a he=%he%-%hea%
echo %he% >he.txt
goto :fanhiu2
:hedayu93
set /a hea=%he%/10*10
set /a he=%he%-%hea%
echo %he% >he.txt
goto :fanhiu3
rem 进程查杀
:task
title 欢迎使用WinCMD进程查杀工具
cls
echo.
echo -== 欢迎使用WinCMD进程查杀工具 ==-
echo.
echo 几乎可以杀死所有进程,按任意键查看进程列表...
pause >nul
:starttask
tasklist
echo.
echo ----------------------------------------------------------------------------
echo [U]刷新进程列表 [B]打开列表 [H]帮助 [.]返回上页 [..]返回首页 [0]退出
echo ----------------------------------------------------------------------------
echo.
set /p task1=[1]普通查杀 [2]超强查杀(默认) [3]终极查杀 选择查杀工具或输入进程全名:
if /i "%task1%"=="1" (goto :taska)
if /i "%task1%"=="2" (goto :taskb)
if /i "%task1%"=="3" (goto :taskc)
if /i "%task1%"=="U" (cls &goto :starttask)
if /i "%task1%"=="B" (
tasklist >%temp%\~task.txt
echo. >>%temp%\~task.txt
echo WinCMD小提示!可以在此列表中复制进程名或PID码,然后粘贴到进程查杀工具中去... >>%temp%\~task.txt
start /max %temp%\~task.txt
cls &goto :starttask
)
if /i "%task1%"=="0" (exit)
if /i "%task1%"=="H" (cls &goto :taskhelp)
if /i "%task1%"=="." (cls &goto :qitagongneng1)
if /i "%task1%"==".." (cls &goto :return)
taskkill /im %task1% /f
pause >nul
cls &goto :starttask
:taskhelp
cls
echo.
echo [1] 普通查杀-tskill 查杀,真输入进程名回车即可,支持通配符"*" (不用输入括展名 .exe)
echo.
echo [2] 超强查杀-taskkill 查杀,需要输入全名(包括括展名 .exe)
echo.
echo [3] 终极查杀-ntsd 查杀,需要输入全名(包括括展名 .exe) (无法查杀有同名的进程,需按PID查杀)
echo.
echo 如果想按PID码查杀那么输入查杀工具[2]或[3]回车后按P回车然后输入PID码即可。
echo.
echo 按任意建返回...
pause >nul
cls &goto :starttask
:taska
set /p task2=请输入进程名字(无括展名):
tskill %task2%
pause >nul
cls &goto :starttask
:taskb
set /p task2=请输入进程名字(有括展名 .exe):
if /i "%task2%"=="p" (goto :Taskillpid)
taskkill /im %task2% /f
pause >nul
cls &goto :starttask
:taskc
set /p task2=(终级查杀)请输入进程名字(有括展名 .exe):
if /i "%task2%"=="p" (goto :taskkillpid)
ntsd -c q -pn %task2%
pause >nul
cls &goto :starttask
:Taskillpid
set /p Taskkillpid=请输入PID码:
Taskkill /pid %Taskkillpid%
pause >nul
cls &goto :starttask
:taskkillpid
set /p ntsdpid=请输入PID码:
ntsd -c q -p %ntsdpid%
pause >nul
cls &goto :starttask
:duoyeIE
echo.
echo 欢迎使用IE多页浏览器安装!
echo.
echo 此功能可以将你的(Internet Explorer)变成一个如“火狐狸”“腾讯TT”“傲行”等
echo.
echo 浏览器那样的一个窗口多个页面的浏览器,还等什么快试试吧。
echo.
echo.
echo [I] 安装IE多页浏览器
echo.
echo [U] 恢复默认IE浏览器
echo.
echo [.] 返回 [0] 退出
echo.
echo.
set /p duoyeIE=请选择:
if /i "%duoyeIE%"=="I" (
regsvr32 /s WebTools\WebTools.dll
echo.
echo IE多页浏览器安装成功快打开试试看吧...
echo.
echo 按任意键返回...
pause >nul &cls
goto :duoyeIE
)
if /i "%duoyeIE%"=="U" (
regsvr32 /u /s WebTools\WebTools.dll
echo.
echo 卸载IE多页浏览器成功,以恢复默认IE浏览器...
echo.
echo 按任意键返回...
pause >nul &cls
goto :duoyeIE
)
if /i "%duoyeIE%"=="." (cls &goto :qitagongneng1)
if /i "%duoyeIE%"=="0" (exit)
echo.
echo 选择错误,请重新选择...
pause >nul &cls &goto :duoyeIE
:userggpas
cls & echo.
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... &pause &exit
set /p shc=请输入原密码密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " NEQ "%%A" (echo. &echo 密码不正确,返回上一页... &pause >nul &goto :gongneng)
:GGpas
cls & echo.
color 0c
echo.
echo [1] 更改 WinCMD 工具密码
echo.
echo [2] 更改系统当前用户密码
echo.
echo [.] 返回
echo.
echo.
set /p pass=请输入你的选择:
if /i "%pass%"=="1" (goto :pass1)
if /i "%pass%"=="2" (goto :pass2)
if /i "%pass%"=="." (goto :gongneng)
echo.
echo 选择错误请重新选择!
echo.
pause & cls
goto :GGpas
:pass1
color 0c
cls
echo.
echo === WinCMD 工具管理密码修改 ===
echo.
echo 注:输入密码不能有"空格"更不能为空!否则会因系统不能识别,无法进入!...
echo.
echo.
@set /p feed=请输入新密码(字母数字或符号):
if /i "%feed%"=="" (cls &echo. &echo 错误!!!不能识别的密码!请重新输入 &color 0A &ping 127.0.0.1 -n 2 >nul &goto :pass1)
echo %feed% >%temp%\~feed.tmp
for /f "delims=" %%i in (%temp%\~feed.tmp) do if /i "%%i"=="ECHO 处于关闭状态。" (cls &echo. &echo 错误!!!不能识别的密码!请重新输入 &color 0A &ping 127.0.0.1 -n 2 >nul &goto :pass1)
echo %feed% >%windir%\pas.dat
del /f/q %temp%\~feed.tmp
echo.
echo 请牢记,以保存为新密码!
echo.
pause
cls & goto :gongneng
:pass2
color 0c
cls
echo.
echo === 系统帐户密码修改须知 ===
echo.
echo 尊敬的用户你好:
echo.
echo 1. 必须是具有管理员权限的用户才能修改密码。
echo.
echo 2. 一旦设置了密码用户就要凭密码登陆系统了。所以一定要牢记密码以免无法
echo.
echo 进入你的帐户。
echo.
echo. 3. 如果本工具对你的计算机造成了损失,作者不承担任何责任!!!
echo.
echo.
echo [N] 返回上一页
echo.
echo.
net user %USERNAME% >%temp%\~user.txt
type %temp%\~user.txt | find /i "admin" >nul
if errorlevel 1 goto :Noadmin2
echo 当前用户为:%username%
echo.
set /p pass=请输入密码:
if /i "%pass%"=="N" (cls &goto :GGpas)
For /F "delims=" %%A in ('echo %pass%') Do if /i "ECHO 处于打开状态。"=="%%A" (cls &color 0a &echo. &echo 错误!!!不能识别的密码! .... &ping 127.0.0.1 -n 3 >nul &cls &goto :pass2)
echo. &echo 你设定的为密码为:%pass%
net user %username% %pass% >nul
echo. &echo 帐户密码以更改,请牢记新密码!
echo. &echo 按任意键返回... &pause >nul
goto :gongneng
:Noadmin2
echo.
echo 你不是管理员用户不能使用些功能....
pause >nul &cls
goto :GGpas
:Wincmdsystem
title WinCMD 工具系统配置 欢迎使用 WinCMD 工具!
cls & color 0a
if not exist %windir%\pas.dat echo 发生错误!密码文件丢失!请重新安装WinCMD工具!... &pause &exit
@set /p shc= WinCMD工具配置,请输入密码:
for /f "delims=" %%A in (%windir%\pas.dat) Do if "%shc% " equ "%%A" (goto :Wincmdsystem1)
echo.
echo 密码错误,按任意键返回....
pause >nul &cls
goto :gongneng
:Wincmdsystem1
for /f %%i in (%windir%\wincmd\dingshi.dat) do if /i "%%i"=="0" (set dingshi= 无密码 ) &goto :next1
set dingshi=密码保护
:next1
for /f %%i in (%windir%\wincmd\qingli.dat) do if /i "%%i"=="0" (set qingli= 无密码 ) &goto :next2
set qingli=密码保护
:next2
for /f %%i in (%windir%\wincmd\yincang.dat) do if /i "%%i"=="0" (set yincang= 无密码 ) &goto :next3
set yincang=密码保护
:next3
for /f %%i in (%windir%\wincmd\xiufu.dat) do if /i "%%i"=="0" (set xiufu= 无密码 ) &goto :next4
set xiufu=密码保护
:next4
for /f %%i in (%windir%\wincmd\shubiao.dat) do if /i "%%i"=="0" (set shubiao= 无密码 ) &goto :next5
set shubiao=密码保护
:next5
for /f %%i in (%windir%\wincmd\KVRav.dat) do if /i "%%i"=="0" (set KVRav= 无密码 ) &goto :next6
set KVRav=密码保护
:next6
for /f %%i in (%windir%\wincmd\qitagn.dat) do if /i "%%i"=="0" (set qitagn= 无密码 ) &goto :Wincmdsystem2
set qitagn=密码保护
:Wincmdsystem2
cls & echo.
echo -== WinCMD 配置选项 ==-
echo.
echo ---------------------------------------------------------------------------
echo.
echo [1] 定时关机项 [%dingshi%] [6] 杀毒不用愁 [%KVRav%]
echo.
echo [2] 清理系统垃圾项 [%qingli%] [7] 其它应用功能 [%qitagn%]
echo.
echo [3] 隐藏或禁用系统项目项 [%yincang%] [8] 删除桌面图标 *
echo.
echo [4] 系统,IE,修复及优化项 [%xiufu%] [9]
echo.
echo [5] 鼠标右键菜单项 [%shubiao%] [0] 退出
echo.
echo ---------------------------------------------------------------------------
echo.
echo [H] 帮助 [.] 返回上一页 [..] 返回首页
echo.
echo ---------------------------------------------------------------------------
echo.
echo.
set /p Wincmd=请输入你的选择:
if /i "%Wincmd%"=="+1" (cls &echo 1 >%windir%\wincmd\dingshi.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-1" (cls &echo 0 >%windir%\wincmd\dingshi.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+2" (cls &echo 1 >%windir%\wincmd\qingli.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-2" (cls &echo 0 >%windir%\wincmd\qingli.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+3" (cls &echo 1 >%windir%\wincmd\yincang.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-3" (cls &echo 0 >%windir%\wincmd\yincang.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+4" (cls &echo 1 >%windir%\wincmd\xiufu.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-4" (cls &echo 0 >%windir%\wincmd\xiufu.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+5" (cls &echo 1 >%windir%\wincmd\shubiao.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-5" (cls &echo 0 >%windir%\wincmd\shubiao.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+6" (cls &echo 1 >%windir%\wincmd\KVRav.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-6" (cls &echo 0 >%windir%\wincmd\KVRav.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="+7" (cls &echo 1 >%windir%\wincmd\qitagn.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="-7" (cls &echo 0 >%windir%\wincmd\qitagn.dat &goto :Wincmdsystem1)
if /i "%Wincmd%"=="9" (cls &goto :Unsetup)
if /i "%Wincmd%"=="0" (exit)
if /i "%Wincmd%"=="." (cls &goto :gongneng)
if /i "%Wincmd%"==".." (cls &goto :return)
if /i "%Wincmd%"=="H" (
echo. >%temp%\~Help.txt
echo 欢迎使用 WinCMD 工具配置... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 注意第1-7项,输入括号内的字符前面应有符号“+”或“-”才有效。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “+”表示开启密码保护,“-”表示取消密码保护。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要启动“定时关机”项的密码保护,就输入 +1 回车即可。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 要取消“定时关机”项的密码保护。就输入 -1 回车即可 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 由用户自己配置WinCMD工具,使用更方便。 >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo 凡后面标有“→”符号的选项,说明该项下还有其它功能选项... >>%temp%\~Help.txt
echo. >>%temp%\~Help.txt
echo “回车”键就是“Enter”键 是确认的意思 >>%temp%\~Help.txt
start /max %temp%\~Help.txt
cls &goto :Wincmdsystem1
)
echo.
echo 选择错误请重新选择...
pause >nul &cls
goto :Wincmdsystem1
rem 编译完必!
rem WinCMD 工具由刘希英编译(流星)
rem E-Mail:ieyou@126.com liuxiying@sina.com
rem QQ:185733281 UC:26272885
rem 最后编译更新时间 2007年10月5日 00:00:00
|
山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-3-21 19:53 |
|
|
zsj008od
初级用户
积分 28
发帖 12
注册 2007-5-8
状态 离线
|
|
2008-3-21 20:14 |
|
|
knoppix7
银牌会员
积分 1287
发帖 634
注册 2007-5-2 来自 cmd.exe
状态 离线
|
『第
4 楼』:
数据可压缩性>50%...这种BAT..应该还是比较正常的...
|
|
2008-3-21 20:56 |
|
|
lfopt
初级用户
积分 71
发帖 34
注册 2008-3-12
状态 离线
|
|
2008-3-21 21:06 |
|
|
HAT
版主
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
|
2008-3-21 22:07 |
|
|
edison
初级用户
积分 23
发帖 17
注册 2006-4-30
状态 离线
|
『第
7 楼』:
请问IESafe这个文件夹在那里????
批处理内容中多次提到.
|
|
2008-3-23 20:31 |
|
|
metoo
初级用户
积分 195
发帖 93
注册 2006-10-28
状态 离线
|
『第
8 楼』:
- - 求教..问题..如何压缩代码.....我也去找找有没现成的帖子
|
|
2008-3-23 21:30 |
|
|
knoppix7
银牌会员
积分 1287
发帖 634
注册 2007-5-2 来自 cmd.exe
状态 离线
|
『第
9 楼』:
TO:ls
请自学变量和FOR语句
|
|
2008-3-23 22:45 |
|
|
metoo
初级用户
积分 195
发帖 93
注册 2006-10-28
状态 离线
|
『第
10 楼』:
- - tks to ls 看了两天批处理教程了。。小有理解。。继续努力中
|
|
2008-3-24 19:57 |
|
|
cczj
新手上路
积分 4
发帖 2
注册 2008-3-24
状态 离线
|
『第
11 楼』:
眼睛都看花了,还是不看了,好牛!
|
|
2008-3-24 21:13 |
|
|
0x8806
新手上路
积分 16
发帖 7
注册 2008-3-23
状态 离线
|
|
2008-3-24 21:35 |
|
|
0x8806
新手上路
积分 16
发帖 7
注册 2008-3-23
状态 离线
|
|
2008-3-24 21:36 |
|
|
wu033213
新手上路
积分 2
发帖 1
注册 2007-9-5
状态 离线
|
|
2008-3-25 09:18 |
|
|
andstart
新手上路
积分 2
发帖 1
注册 2008-3-22
状态 离线
|
|
2008-3-25 22:45 |
|