|
-
May 22nd, 2000, 09:03 PM
#1
Thread Starter
Junior Member
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~>
-
May 22nd, 2000, 09:42 PM
#2
Lively Member
Are you periodically creating static web pages? Sounds like you want cgi or ASP or similar...
Toot
Some cause happiness wherever they go; others, whenever they go.
-
May 22nd, 2000, 09:54 PM
#3
Frenzied Member
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?
-
May 22nd, 2000, 10:24 PM
#4
Frenzied Member
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>
-
May 23rd, 2000, 03:10 AM
#5
Thread Starter
Junior Member
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~>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|