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: Mass changing file extensions  (Read 3120 times)

Rhaythe

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 3
    • View Profile
Mass changing file extensions
« 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 :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Soldan

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 159
    • View Profile
Re: Mass changing file extensions
« Reply #1 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

inico

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 243
    • View Profile
    • http://www.youtube.com/inicocustom
Re: Mass changing file extensions
« Reply #2 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Mass changing file extensions
« Reply #3 on: February 11, 2013, 10:07:44 pm »
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: Mass changing file extensions
« Reply #4 on: February 11, 2013, 10:28:06 pm »
« Last Edit: January 01, 1970, 01:00:00 am by Admin »