-
Hey..
I'm making a webpage for file downloads, and I want it to always be current with the files that are available in the directory.
I figured if there was some way to get a HTML listing of the files in the directory, it would really take a load off. Anyone have a clue?
<~Whisper~>
-
Are you periodically creating static web pages? Sounds like you want cgi or ASP or similar...
Toot
-
What type of server are you running on?
Is it your's?
The easiest wht would be to write an ActiveX dlll and embed it in an Active Server Page.
Would this be possible on your server?
-
paste this into an Active Server Page
Code:
<%@ Language=VBScript %>
<html>
<%
Set fileIO = CreateObject("Scripting.FileSystemObject")
path=Server.Mappath(".")
Set Dir=fileIO.GetFolder(path)
Set FileCollect=Dir.Files
For Each item in FileCollect
Response.Write("<A HREF='" & item.name & "'>" & item.name & "</A><BR>")
Next
set fileIO=Nothing
%>
</html>
-
Hahaha thanks a million! Now it looks like i get to research ASP in addition to all the other languages i'm dabbling in... You've opened a new world to me :-D
Thanks again...
<~Whisper~>