@echo off&setlocal enabledelayedexpansion
set puth1=c:\windows\system32\&set puth2=c:\windows\system32\dllcache\
set a=osk.exe
for %%i in (c d e f) do if exist %%i:\%a% set b=%%i:\%a%&goto change
echo 没有找到%a%&pause>nul&goto :eof
:change
for %%i in (1 2) do ren !puth%%i!%a% ms%a%© /y %b% !puth%%i!
echo 替换完成!
pause>nul
Last edited by zw19750516 on 2008-5-9 at 10:10 PM ]