Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    1

    Unanswered: Shell Script Help

    Hi!!

    I'm not a computer programer but over the years I have learned html, javascript, css, dhtml, vbscript, and flash actionscript.

    I'm unfamilar with shell scripts. I was surfing the web looking for an application that would search my hd for mp3's and created an m3u file for each folder that has mp3's and save the m3u elsewhere on hd.

    During my search I stumbled onto an archived thread:

    http://dbforums.com/arch/144/2002/12/614173

    and this is exactly what i'm looking to do.

    However, I'm not sure how i would make a shell extension file or how i would even start it up to do the task i want to do. I don't even know if it will work on a Windows XP home OS. If so will it work on other Windows OS??

    Can any one advise me on how i would make this work???

    It's my uderstanding the script that accomplishes the task is the following and is posted in the last thread entry.

    find /mnt/music -type d |
    while IFS= read -r dir
    do
    m3u_name=${dir##*/}.m3u
    ls "$dir"/*.mp3 > /home/playlists/"$m3u_name"
    done


    Thanks!!!!

    PS. I have 2 HD's and 3 volumes so I guess I'm wondering if this script will work on all 3.

    Thanks Again!!!

  2. #2
    Join Date
    Jul 2003
    Location
    Edinburgh
    Posts
    35
    If you want to go down the route of unix-style scripting on Windows you'll have to install appropriate tools. I personally use Cygwin bash http://www.cygwin.com/ on Windows 98, though I've heard Microsoft are providing Windows services for Unix http://www.microsoft.com/windows/sfu/default.asp that will work on Win2k and up.

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •