Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Tutorials => Topic started by: Rhaythe on February 11, 2013, 02:44:58 am

Title: Mass changing file extensions
Post by: Rhaythe on February 11, 2013, 02:44:58 am
Just wanted to say that this is my first contribution, I've had a look through with the search function and found nothing. Now, most people probably know this already, but I thought I'd post it just to help some people who don't already know this.

I found this helped when using Mjollna's CataToLkM2 converter when converting multiple files. Converting the files changes the extension of the files to .m2_lk or .skin_lk and manually changing them back to .m2 or .skin files can take a while when changing 100+ files.
To make it a whole lot faster you can hold shift and right click the folder containing the .m2_lk and.skin_lk files and click open command window here and typing .ren *.m2_lk *.m2 or .ren *skin_lk *.skin

Hope some people may find this useful :)
Title: Re: Mass changing file extensions
Post by: Soldan on February 11, 2013, 08:57:19 am
@echo off
for /r %%i in (*.M2) do models.exe "%%i"
pause
FOR /r %%A IN (*.M2) DO DEL %%A
FOR /r %%A IN (*.skin) DO DEL %%A
pause
FOR /r %%A IN (*.M2_LK) DO REN %%A *.m2
FOR /r %%A IN (*.skin_LK) DO REN %%A *.skin
pause
Title: Re: Mass changing file extensions
Post by: inico on February 11, 2013, 04:27:11 pm
You can also download "Advanced Renamer" (a free program for renaming multiple files and folders at once).
www.advancedrenamer.com (http://www.advancedrenamer.com" onclick="window.open(this.href);return false;)
Title: Re: Mass changing file extensions
Post by: Steff on February 11, 2013, 10:07:44 pm
http://www.howtogeek.com/111859/how-to- ... ple-files/ (http://www.howtogeek.com/111859/how-to-batch-rename-files-in-windows-4-ways-to-rename-multiple-files/" onclick="window.open(this.href);return false;)

If you want to know all ;)
Title: Re: Mass changing file extensions
Post by: doresain on February 11, 2013, 10:28:06 pm
mmv on linux http://ss64.com/bash/mmv.html (http://ss64.com/bash/mmv.html" onclick="window.open(this.href);return false;)