原帖由 tyrbl 于 2007-1-18 10:03 发表
::设置本地目录
For /F "delims=" %%I In ("%CFGFile%") Do Set ThisPath=%%~dpI
Set ThisPath=%ThisPath:~0,-1%
这里的Set ThisPath=%ThisPath:~0,-1%
意思啊,有什么用处
set DelWMP10File=audiodev.dll,syncpl??.wpl,drmupgds.exe,wpd*.*,wmpe*.*,wmdrm*.dll,msoobci.dll,uWDF.exe,wdf*.*,wmlaunch.exe
Set DelWMP10File=%DelWMP10File%,wmpsrcwp.dll,wmsetsdk.exe,wmvadv*.dll,*.acm,*.chm,*.inf,*.png,*.txt,*.wmz,*.xml
pushd %TempDir%
For %%i In (%DelWMP10File%) Do If Exist %%i Del %%i /Q>NUL 2>NUL
popd
老毛桃给说一下pushd %TempDir% 和popd 的意思吧,先谢谢拉
原帖由 tyrbl 于 2007-1-22 13:19 发表
set DelWMP10File=audiodev.dll,syncpl??.wpl,drmupgds.exe,wpd*.*,wmpe*.*,wmdrm*.dll,msoobci.dll,uWDF.exe,wdf*.*,wmlaunch.exe
Set DelWMP10File=%DelWMP10File%,wmpsrcwp.dll,wmsetsdk.exe,wmvadv*.dll,*.acm,*.chm,*.inf,*.png,*.txt,*.wmz,*.xml
pushd %TempDir%
For %%i In (%DelWMP10File%) Do If Exist %%i Del %%i /Q>NUL 2>NUL
popd
老毛桃给说一下pushd %TempDir% 和popd 的意思吧,先谢谢拉