不知道这样是不是容易理解些,呵呵:
@echo off
set qqPath=C:\Program Files\Tencent\QQ
taskkill /f /im qq.exe >nul 2>nul
for %%a in (ad Dat QQexternal.exe) do (
for /f "delims=" %%h in ('dir /a-d /b /s "%qqPath%\%%a" 2^>nul') do (
del /f /q /a "%%h" 2>nul
)
for /f "delims=" %%h in ('dir /ad /b /s "%qqPath%\%%a" 2^>nul') do (
rd /s /q "%%h" 2>nul
)
rd /s /q "%qqPath%\%%a" 2>nul
)
for %%a in (QQLiveUpdate QQMusicUpdate QQUpdateCenter Timwp) do (
type nul>"%qqPath%\%%a.exe"
)
Last edited by HAT on 2008-12-5 at 21:55 ]