I've built a lot of band website and they all stream mp3s..
i am tired of writing m3u's.
now i'm building a site that will have 100's of streaming mp3 samples, that will constantly have more added.
so i need a script that will write an new m3u text file for every mp3 file in a selected directory then put the new m3u file into a different selected directory.
I was going to try perl but perl programmers don't want to help
this is what i have so far.. it's unfinished and i'm unsure how to continue
------------------------------
<%
dim fsoObj, filename, objtextFile, baseurl, songname, startdirectory, enddirectory
baseurl = Request.Form("baseurl")
startdirectory = Request.Form("startdirectory")
enddirectory = Request.Form("enddirectory")
%>
<% do until EOF in startdirectory %><!-- not sure about this line -->
<!-- still need to get songname with out the ".mp3" -->
<%
FileName = Server.MapPath( songname & ".m3u")
set fsoObj = Server.CreateObject("Scripting.FileSystemObject")
set objtextFile = fsoObj.OpenTextFile(FileName, 8)
objTextFile.WriteLine ( baseurl & songname & ".mp3")
%>
<% loop %>
<%
objTextFile.Close
set objTextFile = nothing
set fsoObj = nothing
%>
----------------------------------
any help/thoughts would be appreciated