1、打开目录或网站 open_dir.bat @echo off title 打开目录或网站 :loop cls set /p input=请选择(1)(2)(3)退出: if %input%==1 start D:/TDDownload if %input%==2 start www.sina.com.cn if %input%==3 exit pause goto loop 2、系统维护菜单 System_Maintenance.bat @echo off title 系统维护 echo. echo. color a echo ┏━━┓我 ●╭○╮ 我┏━━┓ echo ┃天长┃愛 ★ /█∨█/ ★ 想┃永远┃ echo ┃地久┃你 ∏ ∏ 你┃拥有┃ echo ┗━━┛. 我爱你一万年 ┗━━┛ echo. echo 欢 迎 进 入 系 统 常 用 维 护 工 具 菜 单 ! echo. echo. pause cls @echo off :start echo. echo 欢 迎 进 入 系 统 常 用 维 护 工 具 菜 单 批 处 理 echo 请选择: echo. echo /0-离开/1-转到命令行/q-检查网络连接ping网易 echo. echo /2-注册表/3-组策略/4-设备管理器/5-计算机管理/6-任务管理器 echo /7-启动项管理/8-远程桌面/9-服务管理/a-控制面版/b-磁盘管理/c-本机共享查看 echo /d-查看局域网共享/e-打开网络连接/k--我的电脑属性 echo. echo /i-清理系统垃圾/j-注销计算机/l-关闭计算机 echo. echo /m-本地磁盘C/n-本地磁盘D/o-本地磁盘E/p-本地磁盘F echo. echo /u-新浪NBA/v-百度BLOG/w-新浪BLOG/x-新浪/y-网易/z-百度 echo. echo QQ:506751092 echo. echo. set /p UserChoice= if "%UserChoice%"=="0" goto 0 if "%UserChoice%"=="1" goto 1 if "%UserChoice%"=="2" goto 2 if "%UserChoice%"=="3" goto 3 if "%UserChoice%"=="4" goto 4 if "%UserChoice%"=="5" goto 5 if "%UserChoice%"=="6" goto 6 if "%UserChoice%"=="7" goto 7 if "%UserChoice%"=="8" goto 8 if "%UserChoice%"=="9" goto 9 if "%UserChoice%"=="a" goto a if "%UserChoice%"=="b" goto b if "%UserChoice%"=="c" goto c if "%UserChoice%"=="d" goto d if "%UserChoice%"=="e" goto e if "%UserChoice%"=="f" goto f if "%UserChoice%"=="g" goto g if "%UserChoice%"=="h" goto h if "%UserChoice%"=="i" goto i if "%UserChoice%"=="j" goto j if "%UserChoice%"=="k" goto k if "%UserChoice%"=="l" goto l if "%UserChoice%"=="m" goto m if "%UserChoice%"=="n" goto n if "%UserChoice%"=="o" goto o if "%UserChoice%"=="p" goto p if "%UserChoice%"=="q" goto q if "%UserChoice%"=="r" goto r if "%UserChoice%"=="s" goto s if "%UserChoice%"=="t" goto t if "%UserChoice%"=="u" goto u if "%UserChoice%"=="v" goto v if "%UserChoice%"=="w" goto w if "%UserChoice%"=="x" goto x if "%UserChoice%"=="y" goto y if "%UserChoice%"=="z" goto z cls echo. echo. echo 请正确选择,如果是字母请注意大小写! goto start :0 exit :1 @color 07 @%windir%/system32/cmd.exe @cls @exit :2 @%windir%/system32/regedt32.exe cls goto start :3 @%windir%/system32/gpedit.msc cls goto start :4 @%windir%/system32/devmgmt.msc cls goto start :5 @%windir%/system32/compmgmt.msc cls goto start :6 @%windir%/system32/taskmgr.exe cls goto start :7 @%windir%/PCHealth/HelpCtr/Binaries/msconfig.exe cls goto start :8 @%windir%/system32/mstsc.exe cls goto start :9 @%windir%/system32/services.msc cls goto start :a @%windir%/system32/control.exe cls goto start :b @%windir%/system32/diskmgmt.msc cls goto start :c @%windir%/system32/fsmgmt.msc cls goto start :d net share >>%windir%/system32/share.txt type %windir%/system32/share.txt pause cls goto start :e @%windir%/system32/ncpa.cpl cls goto start :k sysdm.cpl cls goto start :i @echo off echo 正在帮您清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%/*.tmp del /f /s /q %systemdrive%/*._mp del /f /s /q %systemdrive%/*.log del /f /s /q %systemdrive%/*.gid del /f /s /q %systemdrive%/*.chk del /f /s /q %systemdrive%/*.old del /f /s /q %systemdrive%/recycled/*.* del /f /s /q %windir%/*.bak del /f /s /q %windir%/prefetch/*.* rd /s /q %windir%/temp & md %windir%/temp del /f /q %userprofile%/cookies/*.* del /f /q %userprofile%/recent/*.* del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*" del /f /s /q "%userprofile%/Local Settings/Temp/*.*" del /f /s /q "%userprofile%/recent/*.*" cls echo 清除系统垃圾完成! goto start :j shutdown -l -t 60 :l shutdown -s -t 0 :m start c:/ cls goto start :n start d:/ cls goto start :o start e:/ cls goto start :p start f:/ cls goto start :q ping www.163.com >d:/PING网易连接情况.txt cls start d:/PING网易连接情况.txt goto start :u start http://sports.sina.com.cn/nba/ cls goto start :v start http://hi.baidu.com/nsj820 cls goto start :w start http://blog.sina.com.cn/nsj820 cls goto start :x start www.sina.com.cn cls goto start :y start www.163.com cls goto start :z start www.baidu.com cls goto start 3、说明:这两个菜单没什么实际用处,直接用鼠标点可能会更方便;此处仅仅提供一个思路,批处理在某些方面应用的一个参考!