[iyonix-support] Re: Help with renaming DOS extensions please
- From: Nick Roberts <tigger@xxxxxxxxxxxxxxxxxxxxx>
- To: archive-online@xxxxxxxxxxxxxxxxxxxxx, iyonix-support@xxxxxxxxxxxxx
- Date: Fri, 21 Nov 2008 17:04:13 GMT
In message <50003d946dmail@xxxxxxxxxxxxxxxxxxxxxx>
John <mail@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> I have just renamed a large number of directories of mp3 files to
> include the appropriate DOS extension using !Rename. I did this so
> that a networked Windoze machine would recognise the files as music
> and be able to play them on WMP11.
>
> I now see that !Rename has appended the file extension .mpa instead
> of the expected .mp3 so WMP11 still cannot play them since it thinks
> they are movie clips :(
>
> I am sure it must be possible to change all instances of .mpa into
> .mp3 using !Rename but I cannot find the right combination of entries
> for the two windows. Can anyone help, please?
>
> If there is an alternative way of renaming them all - bearing in mind
> there are a lot of nested directories - that would, of course, do as
> well.
John has emailed me to ask if Rename can be made to use mp3 rather than
mpa for these files. The relevant part of my response is copied below
if anyone else has the same (or similar) problem:
The problem is that there are multiple mime types that map on to the
same RISC OS file type - you can confirm this by opening a task window
and typing:
mimemap .mpa
&
mimemap .mp3
On my machine, they both return the same RISC OS file type (0x1ad), but
different MIME types (audio/mpeg and audio/mp3 respectively).
You can fix the problem by editing your MimeMap file. To find this,
hit F12, type
filer_opendir Inet:Files
& then Enter (twice).
This should give you a filer window containing (among others) a text
file called MimeMap. Load this into a text editor, and search for 1ad
(the RISC OS file type).
The first Mime type found that uses that RISC OS file type will be the
one that Rename uses as the file type extension; hence if you have:
audio/mpeg AMPEG 1ad .mpa
audio/mp3 AMPEG 1ad .mp3
in your MimeMap file, Rename will use "mpa" as the extension, but if
you have
audio/mp3 AMPEG 1ad .mp3
audio/mpeg AMPEG 1ad .mpa
Rename will use "mp3".
Hence, what you need to do is to alter the MimeMap so the reference to
audio/mp3 appears before audio/mpeg, and then save the file.
You then need to force the MimeMap module to update its mapping, so
type
readmimemmap
into a task window. Rename should then use mp3 rather than mpa.
--
Nick Roberts tigger @ orpheusinternet.co.uk
Hanlon's Razor: Never attribute to malice that which
can be adequately explained by stupidity.
---
To alter your preferences or leave the group,
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support
Other related posts: