- @ECHO OFF&PUSHD %~DP0 &TITLE 绿化
- taskKill /f /im PPS* >NUL 2>NUL
- md "%AppData%\PPStream">NUL 2>NUL
- rd/s/q "%AppData%\PPStream\adsys"2>NUL
- rd/s/q "%AppData%\PPStream\banner"2>NUL
- rd/s/q "%AppData%\PPStream\notice"2>NUL
- del /f "%AppData%\PPStream\PPSup*.*">NUL 2>NUL
- del /f "%AppData%\PPStream\Psnet*.ini">NUL 2>NUL
- del /f "%AppData%\PPStream\PPStream.ini">NUL 2>NUL
- reg delete "HKCU\Software\PPStream" /F >NUL 2>NUL
- echo.[Main]>"%AppData%\PPStream\PPStream.ini"2>NUL
- echo.Allinone=0 >>"%AppData%\PPStream\PPStream.ini"2>NUL
- echo.ExitAction=2 >>"%AppData%\PPStream\PPStream.ini"2>NUL
- echo.DisableScreenSaver=1 >>"%AppData%\PPStream\PPStream.ini"2>NUL
- regsvr32 /s PPSimage.dll PowerList.ocx PowerPlayer.dll vodnetproxy.dll
- reg add HKCU\Software\PPStream\Main /v Allinone /t REG_DWORD /d 0 /F>NUL
- reg add HKCU\Software\PPStream\Main /v ExitAction /t REG_DWORD /d 2 /F>NUL
- :Menu
- echo.&echo 1.显示右侧资讯导航[自选] 2.隐藏右侧资讯导航[默认]
- echo.&echo 3.启用本地列表功能[自选] 4.禁用本地列表功能[默认]
- echo.&echo.
- set /p a=输入数字回车:
- if "%a%"=="1" Goto ShowRight
- if "%a%"=="2" Goto HideRight
- if "%a%"=="3" Goto AddMediaList
- if "%a%"=="4" Goto DelMediaList
- :AddMediaList
- regsvr32 /s MediaList.ocx & SET E=完成!&Goto MsgBox
- :DelMediaList
- regsvr32 /s /u MediaList.ocx & SET E=完成!&Goto MsgBox
- :ShowRight
- del "%AppData%\PPStream\PPStream.ini">NUL 2>NUL
- reg delete HKCU\Software\PPStream\Main /v Allinone /F>NUL 2>NUL&SET E=完成!&Goto MsgBox
- :HideRight
- md "%AppData%\PPStream" >NUL 2>NUL
- echo.[Main]>"%AppData%\PPStream\PPStream.ini"2>NUL
- echo.Allinone=0 >>"%AppData%\PPStream\PPStream.ini"2>NUL
- reg add HKCU\Software\PPStream\Main /v Allinone /t REG_DWORD /d 0 /F>NUL
- reg add HKCU\Software\PPStream\Main /v ExitAction /t REG_DWORD /d 2 /F>NUL&SET E=完成!&Goto MsgBox
- :MsgBox
- if "%1"=="" mshta VBScript:MsgBox("%e%",vbSystemModal,"")(close)&Cls&Goto Menu
复制代码 高手请看上面
我想达到这样一个目的,首先去除选择后的“完成”弹窗口。最好是启动BAT后默认就选择1 和3 。然后延时5秒后启动C盘更目录下的QQ.exe 然后关闭bat窗口。 也就是说启动BAT后就执行1和3 的优化,完毕后启动C盘的文件,再然后就关闭BAT窗口 谢谢各位大侠 |