Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

File Extension Search

  • 05-09-2008 2:35pm
    #1
    Registered Users, Registered Users 2 Posts: 2,552 ✭✭✭


    Hello, ive got an external harddrive media player for my tv that i've put my music collection onto. When i start up the system it doesn't initialize because my music folder is riddled with files that aren't music (ie. itunes crap and files that come with ownloads and stuff). I was just wondering is there any way to filter them out so i can delete them or do some kind of search command that looks for anything but mp3 files like */.mp3 or something. Let me know if you can think of anything

    bysies


Comments

  • Registered Users, Registered Users 2 Posts: 1,562 ✭✭✭cance


    is moving the music files out of the directory out of the question:

    for example

    Dir *.mp3 >> c:\mp3.txt
    FOR /F "tokens=* delims=: " %i in (c:\mp3.txt) do copy "%1" c:\music

    or do you want to maintain the current file structure?


  • Registered Users, Registered Users 2 Posts: 1,562 ✭✭✭cance


    this will work and will keep your folder structure the same:

    Robocopy: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

    c:\test is the location of your current music, wrap it with "" if theres a space in the name... e.g. "c:\documents and settings\yourma\music"

    c:\dump is where it will place all the crap you wish to remove.

    robocopy c:\test c:\dump /MOVE /xf *.mp3 /s

    rd /s /q c:\dump

    be very careful with this, it will move EVERYTHING not labeled *.mp3 to c:\dump, then delete the folder.

    I suggest you backup your music folder before considering this, also remember music can come as ogg, wma etc not just mp3.


  • Registered Users, Registered Users 2 Posts: 2,552 ✭✭✭Steoob


    cheers for that, handy enough. I came across a pretty easy solution myself after some messing around. i just searched "*" in the music folder which brought me up every file and i just sorted by file type and deleted all the junk there. thanks for the help tho


  • Registered Users, Registered Users 2 Posts: 1,562 ✭✭✭cance


    Steoob wrote: »
    cheers for that, handy enough. I came across a pretty easy solution myself after some messing around. i just searched "*" in the music folder which brought me up every file and i just sorted by file type and deleted all the junk there. thanks for the help tho

    that would have been far simpler :o

    typical for me to over complicate matters.


Advertisement