Directory List

Experts,
   I am creating a web page that is currently being saved as an asp file.  One of the tasks I need to do is create a list of text files in a document on my network then list them on a page with a hyperlink enabling the client to read the text file when clicking the hyperlink on the list.  Can someone please help?  If you need some more information please let me know.
-TrEaSoN-
TrEaSoNAsked:
Who is Participating?
 
BlackManConnect With a Mentor Commented:
You can use FileSystemObject. Here is an example using VBScript:

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder("C:\winnt")
Set fc = f.Files
For Each f1 in fc
Response.write f1.name & "<br>"
Next


FileSystemObject doesn't come with IIS, it comes with Windows Scripting Host. Surf to www.microsoft.com/scripting and install WSH. You must install it on the IIS server

0
 
TrEaSoNAuthor Commented:
Do I put this code inside of the <head> tag?
0
 
TrEaSoNAuthor Commented:
Never Mind, I got it to work.  But I still need to know how to put file size and date created next to it.  If you can tell me that, the points are yours.
-TrEaSoN-
0
 
BlackManCommented:
I think it is F1.Size and F1.Date, but it is in the WSH documentation...
0
 
TrEaSoNAuthor Commented:
BlackMan,

  I tried that, but it didn't work.  It doesn't matter though because I did what i needed to do.  Thanks for the help.
-TrEaSoN-
0
All Courses

From novice to tech pro — start learning today.