@echo off
title XP/WMP/OFFICE/FLASHԶװ    by:yxg8855
color 1f
echo ====================================================================

ECHO.                         ˵ 
echo.
echo.     ͬĿ¼зXPWMPOFFICEFLASHļС
echo.     ֱXP/WMPĲXPWMPļ
echo.     OFFICEĲOFFICEļ
echo.     FLASHĲFLASHļ.
echo.     
echo.     ȷ趨ô밴ʼѡ
echo.
echo =====================================================================
pause>nul
cls
:cho
echo.
echo ------------------------------------------------------
echo.              ѡҪװĲȻ󰴻س
echo.------------------------------------------------------
echo.                 
echo.                  1.װXPWMP
echo.
echo.                  2.װOFFICE
echo.
echo.                  3.װFLASH for IE
echo.
echo.                  4.װۼ
echo.
echo.                  0.˳              
echo.
echo.--------------------------------------------------------
echo.
set choice=
set /p choice=              ѡӦĿ:
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1%
if /i "%choice%"=="1" goto XPwmp
if /i "%choice%"=="2" goto office
if /i "%choice%"=="3" goto flash
if /i "%choice%"=="4" goto clean
if /i "%choice%"=="0" goto end
echo.
echo ѡЧ
echo.
goto cho

:XPwmp
cls
echo ڰװXP/wmp...
for %%i in (XPWMP\*.exe) do echo %%i... &start /wait %%i /quiet /norestart /nobackup
echo XP/wmpװϣ!
pause >nul
cls
goto cho

:office
cls
echo ڰװOFFICE...
for %%i in (OFFICE\*.exe) do echo %%i... &start /wait %%i /Q:A /R:N
echo officeװϣ!
pause >nul
cls
goto cho

:flash
cls
echo ڰװFLASH...
for %%i in (FLASH\*.exe) do echo %%i... &start /wait %%i /S
echo FLASHװϣ!
pause >nul
cls
goto cho

:clean
cls
echo ϵͳװۼ...
dir %systemroot%\$* /a:d /b >%systemroot%\del.txt
for /f %%i in (%systemroot%\del.txt) do rd %systemroot%\%%i /s /q
del %systemroot%\del.txt
del /s /q "%ProgramFiles%\UPDATE\*.*"
del /s /q "%ProgramFiles%\windowsUpdate\*"
del /s /q %systemroot%\Installer\*.*
del /s /q "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*"
del /s /q "%USERPROFILE%\Local Settings\Temp\*.*"
del /F/S/Q %systemroot%\KB*.log
del /F/S/Q %systemdrive%\*.chk
del /F/S/Q %systemdrive%\*.old
del /F/S/Q %systemdrive%\*.bak
del /F/S/Q %systemdrive%\*.tmp
del /F/S/Q %systemdrive%\*._mp
echo ϵͳװۼϣ!
pause >nul
cls
goto cho

:end
cls
exit

