Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   MPC for Windows (https://forum.musepack.net/forumdisplay.php?f=8)
-   -   Batch renaming .mp+ to .mpc (https://forum.musepack.net/showthread.php?t=147)

drmrbrewer 27 February 2005 09:50 pm

Batch renaming .mp+ to .mpc
 
This is perhaps slightly off topic, but it's still related to musepack.

Does anyone know how I can batch rename all my old .mp+ files to .mpc files?

The reason behind this is that I want to use mp3tag to correct a few errors in some tags in the old mp+ files, and I can't get mp3tag to read the mp+ files, only mpc files (despite having added *.mp+ to the extension list in the mp3tag options). I asked about this on the mp3tag forum a few days back, but had no reply. So I'm trying you guys!

Thanks,

Mike

Shy 28 February 2005 04:41 am

Ganymed (Mp3tag developer) is currently away from his computer, he'll come back to it in about 2 days :).

You can rename a batch of your files using "ren *.mp+ *.mpc" in a command line window inside the folder with the mp+ files. (or "ren *.mp+ E:somefolder*.mp+ *.mpc")
Or you could use some program that specializes in batch renaming, like renamefiles.

xmixahlx 28 February 2005 06:50 pm

don't people use sweep (on windows) for this sorta thing?

and isn't ren absent from XP?


later

Mr_Rabid_Teddybear 01 March 2005 09:01 pm

ren works on xp.
So for windows (not as elegant as in linux, i know) I think the following is a good solution:
Make a batchfile, e.g. renmpc.bat, with the following content:
Code:

ren *.mp+ *.mpc
Download Sweep
http://www.saunalahti.fi/cse/files/?C=M;O=A
Put Sweep.exe and renmpc.bat in %PATH% (e.g. System32), open a CMD window on the topmost directory of your Musepack files and type:
Code:

sweep renmpc.bat
and you will get recursive renaming. You can furthermore put this in folder contextmenu, but I haven't got the template for that reg file here. I can add this later if wanted.

[EDIT]
Actually I figured it out. You'll have to make the renmpc.bat like this:
Code:

cd %1

sweep.exe ren *.mp+ *.mpc

and then make and import (doubleclick, answer yes) a reg file like this (you can name it renmpc.reg):
Code:

REGEDIT4



[HKEY_CLASSES_ROOTDirectoryshellrenmpc]

@="&Rename mp+ to mpc"



[HKEY_CLASSES_ROOTDirectoryshellrenmpccommand]

@=""C:WINDOWSsystem32renmpc.bat" "%1""

You'll need sweep.exe and renmpc.bat in System32 for this.
[/EDIT]

drmrbrewer 02 March 2005 09:52 am

Thanks, all, for your help. Much appreciated.

Mike


All times are GMT. The time now is 12:45 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2020, vBulletin Solutions Inc.