Matc
07-07-2004, 11:31 AM
Hi there
ive go the following code called list.asp which can display all the files in a certain directory
<%
Set Objekt=Server.CreateObject("Scripting.FileSystemObject")
Set Folder=Objekt.GetFolder(Server.MapPath("pressreleases/"))
FOR EACH sak in Folder.Files
if sak.Name="list.asp" then
'ReadFileLineByLine(Server.MapPath("pressreleases/"))
end if
%>
<%=sak.Name%><br>
<%
NEXT
%>
I want to be able to somehow insert this into a listmenu, so a user can select from the drop down menu, the appropriate file to link to the title they have entered in an add record. Im having problems though, anyone got any ideas?
Thanks
Mat
ive go the following code called list.asp which can display all the files in a certain directory
<%
Set Objekt=Server.CreateObject("Scripting.FileSystemObject")
Set Folder=Objekt.GetFolder(Server.MapPath("pressreleases/"))
FOR EACH sak in Folder.Files
if sak.Name="list.asp" then
'ReadFileLineByLine(Server.MapPath("pressreleases/"))
end if
%>
<%=sak.Name%><br>
<%
NEXT
%>
I want to be able to somehow insert this into a listmenu, so a user can select from the drop down menu, the appropriate file to link to the title they have entered in an add record. Im having problems though, anyone got any ideas?
Thanks
Mat