I always wanted a auto-way to delete old versions of .VAR files) So i've made these two .bat files.
You just need to create 1.bat and 2.bat and place them both in "AddonPackages" folder. Then you start 1.bat and wait (it can take a while). That will move ALL old files to "C:\games\delete". Remember to change C:\games\ for YOUR game folder. And create "delete" folder too.
Thats for 1.bat:
Code:
@echo off
setlocal enableextensions enabledelayedexpansion
C:
cd "C:\games\VAM\AddonPackages\"
color 11& cls
for %%i in (*.*) do (call "C:\games\VAM\AddonPackages\2.bat" %%i)
Thats for 2.bat:
Code:
@echo off
setlocal enableextensions enabledelayedexpansion
cd "C:\games\VAM\AddonPackages"
color 11& cls
rem set char=aaa.bbbb.1.txt
echo i=%1
set char=%1
echo char=!char!
set de=!char:.= !
for %%h in (!de!) do (set /a n+=1& set m!n!=%%h)
set /a VR=1
for /l %%h in (1,1,!n!) do (set B!VR!=!m%%h!&set /a VR+=1)
echo 1=%B1%
echo 2=%B2%
echo 3=%B3%
echo 4=%B4%
echo BB3=%B3%
set FNM=%B1%.%B2%.%B3%.%B4%
echo FNM=%FNM%
Set /a BB3=%B3%+1
rem echo BB3new=%BB3%
:crutch
set NFN=%B1%.%B2%.%BB3%.%B4%
rem echo NFN=%NFN%
if exist %NFN% move /Y %FNM% C:\games\delete\
Set /a BB3=%BB3%+1
if not %BB3%==999 goto :crutch
cd ..
endlocal
Hope that helps anyone.