Amiga Music Files by Bladeforce at 9:37 AM EDT on September 17, 2010
I hope I can get a solution to this! IS there any way to mass rename amiga format music for example mdat.fight where the extension is at the beginning? There must be thousands named like this and i cant associate them with my player. Is there a simple solution to his please?
If they're all mdat.whatever, "for %I in (mdat.*) do ren %I %I.mdat" should work, though then they'll be mdat.whatever.mdat.
(I'm assuming you're using the Windows cmd.exe)
edited 10:18 AM EDT September 17, 2010
by arbingordon at 11:52 AM EDT on September 17, 2010
Branching off of what hcs said, "for %I in (mdat.*) do ren %I %~xI.%~nI" at the CMD will take mdat.filename and rename to .filename.mdat, so you can sort it. (not sure how to go about getting rid of the leading period for each filename) Edit: save this: for %%I in (mdat.*) do ren "%%I" "%%~xI.%%~nI" for %%i in (.*.mdat) do (set fname=%%i) & call :rename :rename ren "%fname%" "%fname:~1%" into a batch file and run it, it'll rename from mdat.filename to filename.mdat
edited 12:03 PM EDT September 17, 2010
by Bladeforce at 1:36 PM EDT on September 17, 2010
.mdat was just an example extension there are loads of others. I take it i just have to substitute the other extensions and mdat when i come to rename the others? Many thanks for this batch file i'll try it!
by arbingordon at 9:28 PM EDT on September 17, 2010
if they're named like "ext.filename", yea, you can replace "mdat" in the batch file with whatever the "ext" is.
Be warned that a few Amiga formats like TFMX (mdat.) expect their extension to be a prefix, not a suffix. If you rename mdat. into .mdat, the associated smpl. resource will not be recognized anymore.