@echo off
set PathFolder=E:\Games2\World_of_Warships\bin\
set PathResMods=\res_mods
if exist %PathFolder% (
echo Folder is correct, proceeding...
) else (
echo Folder is not correct, aborting. Check folder for bin path in batch file!
pause
exit
)
for /F "eol=| delims=" %%I in ('dir %PathFolder% /AD /B /O-N 2^>nul') do set "FolderName=%%I" & goto CopyMod
:CopyMod
set PathComplete=%PathFolder%%FolderName%%PathResMods%
xcopy /s /e ".\res_mods\*.*" "%PathComplete%"
echo Mod installed!
Pause
If anyone should care, this batch file, in combination with the relative batch file and folder setup shown in the attachment should do the job, at least it does right now for me. The res_mods folder where the batch file is located is then replicated into the one in the installation folder with the highest version number, so its contents must be placed appropriately.
Of course, one needs to adjust the WoWs' bin folder location manually, I just left my installation path in there as a start. I used to read folder paths from registry keys for installed programs about 20 years ago (for a batch file port graphic asset swapper for NavyField), but from what I can see now the registry may not be that simple to access from batch files in current Windows versions so I went the manual route, just to be sure.
This can be used by anyone who has his own mods that are not part of a modpack with a proper installer to keep stuff updated. Yes, simple copy/paste also does the job, but... well, I just wanted to follow the thought through 😉