31 lines
725 B
Batchfile
31 lines
725 B
Batchfile
|
@echo off
|
||
|
pushd "C:\Games\World of Warcraft\_retail_\WTF\Account"
|
||
|
del /s *.bak
|
||
|
del /s *.old
|
||
|
for /d %%i in (*) do (
|
||
|
if exist %%i\SavedVariables\ (
|
||
|
echo Account: %%i
|
||
|
for %%j in ("%%i\SavedVariables\*.lua") do (
|
||
|
echo GlobalSV: %%~nj
|
||
|
if not exist ..\..\Interface\AddOns\%%~nj\ (
|
||
|
echo Delete: %%~nj
|
||
|
del "%%j"
|
||
|
)
|
||
|
)
|
||
|
for /d %%j in ("%%i\*") do (
|
||
|
for /d %%k in ("%%j\*") do (
|
||
|
echo Character: %%k
|
||
|
for %%l in ("%%k\SavedVariables\*.lua") do (
|
||
|
echo CharSV: %%~nl
|
||
|
if not exist ..\..\Interface\AddOns\%%~nl\ (
|
||
|
echo Delete: %%~nl
|
||
|
del "%%l"
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
popd
|
||
|
pause
|