About This File
I made this script to convert multiple models from Legion to Wrath of the Lich King or Warlords of Draenor. Requires 010 editor.
The first script removes the unnecessary information before the M2 header and changes its version from 274 to 272 to make it work in WoD. The second one does the same but also runs Philip's converter on the M2 files to make them work in Wotlk.
How it works:
-Put the models you want to covert inside the folder called "Models".
-Run "Legion M2 to Wod/Wotlk.bat" and wait
This script can also read all the subfolders inside "models" and convert every M2 inside of them.
To make this script work there must be an entry for 010 editor in environment variables (this allows windows to launch 010 editor through the cmd window, otherwise it won't work):
-Right click on My computer -> properties -> advanced system settings -> environment variables -> Path
-Add your 010 editor directory to the list separated from the rest of the entries by a ";" (Example: ;C:\Program Files (x86)\010 Editor)
(Detailed guide on this video)