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

Copying files in a playlist to a location

  • 26-12-2004 12:15am
    #1
    Closed Accounts Posts: 583 ✭✭✭


    if i have a playlist , a m3u , is it possible to basically copy all the songs in that playlist into a certain location.

    so if my playlist was
    c:\album1\track3.mp3
    c:\album2\track5.mp3
    c:\album3\track7.mp3

    and i want put them into a new folder called "my music" so it would be
    c:\my music\track3.mp3
    c:\my music\track5.mp3
    c:\my music\track7.mp3

    is there an easy way to do this?


Comments

  • Closed Accounts Posts: 65 ✭✭My Opinion


    stuey wrote:

    Words

    is there an easy way to do this?

    No


  • Registered Users, Registered Users 2 Posts: 4,287 ✭✭✭NotMe


    My Opinion wrote:
    No

    Don't mind that muppet.


    You could open the playlist in Word or your favourite text editor and use the replace function.

    Replace
    c:\album3\
    with
    c:\my music\


  • Closed Accounts Posts: 65 ✭✭My Opinion


    NotMe wrote:
    Don't mind that muppet.


    You could open the playlist in Word or your favourite text editor and use the replace function.

    Replace
    c:\album3\
    with
    c:\my music\

    If you actually read his post you would see he wanted to move the files not change the playlist.


  • Closed Accounts Posts: 583 ✭✭✭stuey


    ok dont fight now!!!
    something just got me thinking.
    if i was to have a slightly modified playlist. none of the extra crap thats in an m3u playlist. just basically a list of file locations. could i create some kind of batch job that would go through the list and basically to a xcopy to my "my music" folder.

    so it would be "xcopy (file 1 in text file) c:\my_music /e/c/i/q/h"
    and then after that xcopy it would change to file 2

    i dont know how to write a batch jobs but i have used them before. im just throwing out ideas here. what i said might not be possible at all


  • Registered Users, Registered Users 2 Posts: 4,287 ✭✭✭NotMe


    sorry I didn't read the question properly. Ok so open the .m3u file in a text editor (I use EditPlus 2. Word would work also.) Using the replace tool, replace:

    c:\
    -with-
    copy "c:\

    and replace
    .mp3
    -with-
    .mp3" "c:\myMusic\"

    then click "replace all".

    Then just save the file as playlist.bat and double click it and it will copy all the songs to the c:\myMusic folder. The lines in the .m3u file that look like
    #EXTINF:229,Clash - Clampdown
    will just give an error when run in the batch file but they don't matter.
    I just tried this a minute ago so it does work.


  • Advertisement
  • Closed Accounts Posts: 583 ✭✭✭stuey


    NotMe u sure showed him. Fair play to you. First he says it cant be done. Then slags you off saying you cant read. Then you gave me a solution which took 2 minutes to write in edit plus and it worked perfectly!!!!!!!!

    Good man urself. Im a happy man now. Happy Christmas to you and have a fantastic New Year


  • Registered Users, Registered Users 2 Posts: 4,287 ✭✭✭NotMe


    Cool. It's funny though because I wanted to do this about a month ago and I never thought about making the playlist into a batch file. I ended up just copying the files manually. Ah well. :D


  • Closed Accounts Posts: 583 ✭✭✭stuey


    thanks agian for that. just another quick question, im trying to tidy up that batch job by getting rid of all the m3u crap.

    1. is there a way to delete all lines of text that contain #EXTINF:0
    2. or is there anyway to log the key stoke down>down>shift+end>delete>delete. and execute a set number of times?. cause i dont fancy pressing that key stroke 500 times!!!

    Im using edit plus v2.12 by the way


  • Registered Users, Registered Users 2 Posts: 4,287 ✭✭✭NotMe


    You could use regular expressions. If you don't know what they are just go to the replace dialog and click the regular expression box. Then where it says "find what" type:

    #EXT[-`!£$%^&()_+{}~#@':,\\/.a-zA-Z0-9 ]*\n

    and where it says "replace with" ... leave it blank.


Advertisement