This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Bat file Issue, see inside :)  (Read 637 times)

Kranimal

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 84
    • View Profile
[Question] Bat file Issue, see inside :)
« on: May 07, 2015, 11:24:21 am »
FOR /R "E:Wow FilesWMO TestWorldwmo" %%I in (*.wmo) DO IF EXIST "E:Wow FilesWow WOTLK ExtractedWorldwmo" DEL "%%I"
pause

Basically what I thought this would do is compare my WOD .wmo extraction to my WOTLK .wmo extraction and if the file does exist in the WOTLK .wmo extraction it would delete it from the WOD .wmo extraction.

But instead it just deletes every .wmo in the folder instead of the ones with the same name, anybody know how to fix this so it will just delete .wmo that have the same names from the folder?

Would be a HUGE help lol, and time saver
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

PhilipTNG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 709
    • View Profile
Re: [Question] Bat file Issue, see inside :)
« Reply #1 on: May 07, 2015, 03:43:51 pm »
I did it another way... the simpleton way hahahaha..., i just extracted all the listfiles from all the WoTLK MPQ files XDD.  merged them all into one text file, dropped it into excel and removed duplicates.  saved out the remaining list as a batch file, dropped it into notepad++ and ran a macro on it adding DEL "   and ending it with a closing quote, so it's like
del "worldblahfile.m2"
del "worldwmoblahwmo_000.wmo"
etc etc

and i'd just run it in the folder where I did my extracts in and it usually takes care of it pretty well, ofcourse I've edited it a bit to remove things that I don't ever extract like Shader and Sound files and to avoid deleting dbc files.

I've attached mines if you want to try using it or just to get a better idea of what i was rambling on about, though it could take pretty long to run through it since it does have a lot to go through and all.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »