Make a playlist of mp3's in a folder, and play them

  • Notice how you can chain multiple commands in one command line with &'s:

    c: & cd "%USERPROFILE%\Music" & dir /s /b *.mp3 > playlist.m3u & start playlist.m3u

    The command does the following:

    1. Changes to the C: drive in case your default working folder is on a drive other than C:
    2. Changes directory to the Music folder in your profile folder
    3. Creates a playlist file of all of the .mp3 files in your Music folder, including subfolders
    4. Launches the playlist using your default music player

Log in to reply