Thanks.
Would you need to? Couldn't you just make the ### folders named after the files, then in each one put all the possible (NW4R) folders, then extract, copy to the files to the matching folder, then delete any empty ones?
Not that I mean to sound like I know what I'm talking about, but that's the impression I got as to how the last one worked, which was why I am asking.
I tried to edit what you wrote myself, just by switching the folders so the numbers came first. I got some weird results. For example the .brres files were in my folder:
Code:
E:\extracts\menu2\decrypted\mu_menumain_en15\
When I tried to run it it would put the extracted files in folders named:
Code:
E:\extracts\menu2\decrypted\mu_menumain_en15\###\*(NW4R)\extracts\menu2\decrypted\mu_menumain_en15\
So it would sort the files right, make the ### folders with the (NW4R) folders inside, but then for some reason in there it would put all the other folders in the path.
It was a simple change. You can just move the entire folder instead of the files in it.
CODEfor /R %%I in (*.brres) do (
mkdir "%%~pI3DModels(NW4R)\%%~nI"
mkdir "%%~pIAnmChr(NW4R)\%%~nI"
mkdir "%%~pIAnmClr(NW4R)\%%~nI"
mkdir "%%~pIAnmTexPat(NW4R)\%%~nI"
mkdir "%%~pIAnmTexSrt(NW4R)\%%~nI"
mkdir "%%~pIAnmVis(NW4R)\%%~nI"
mkdir "%%~pIPalettes(NW4R)\%%~nI"
mkdir "%%~pITextures(NW4R)\%%~nI"
mkdir "%%~pI%%~nI"
SSBExtract "%%I"
move "%%~pI3DModels(NW4R)" "%%~pI%%~nI"
move "%%~pIAnmChr(NW4R)" "%%~pI%%~nI"
move "%%~pIAnmClr(NW4R)" "%%~pI%%~nI"
move "%%~pIAnmTexPat(NW4R)" "%%~pI%%~nI"
move "%%~pIAnmTexSrt(NW4R)" "%%~pI%%~nI"
move "%%~pIAnmVis(NW4R)" "%%~pI%%~nI"
move "%%~pIPalettes(NW4R)" "%%~pI%%~nI"
move "%%~pITextures(NW4R)" "%%~pI%%~nI"
) >> SSB_log.txt
for /R %%a in (*.tpl) do (
tplconv "%%a"
del "%%a"
) >> TPL_Log.txt
for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d"
pause