It's been my observation that windows doesn't differentiate between mp3 and wma files. If you tell it to sort a window by file type, it literally sorts those two file types alphabetically as though they were a single type.

I'm almost pretty positive that wma / wmv files can run little programs on your computer that do things like open web browsers. They are also likely to able to cause audio / video files to malfunction when they are played.

To me, this is just about the dirtiest thing that microsoft has ever done, because (if it's true) they've damaged the integrity of their operating system (disabling sort by type for these files).

Coming to the point... Is there any way to write a program that will spot wma files that have been named as mp3 files, and rename / delete / isolate them into a special folder? I don't know much about the file format, or even how you would find out what the file format is.

If this is possible, it would most definitely be a Cool Use For Perl.

--Dave


In reply to WMA / WMV files by David Caughell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.