Solved

Directory List

Posted on 1998-07-15
5
149 Views
Last Modified: 2012-05-05
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-
0
Comment
Question by:TrEaSoN
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 200 total points
ID: 1844636
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
 

Author Comment

by:TrEaSoN
ID: 1844637
Do I put this code inside of the <head> tag?
0
 

Author Comment

by:TrEaSoN
ID: 1844638
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
 
LVL 7

Expert Comment

by:BlackMan
ID: 1844639
I think it is F1.Size and F1.Date, but it is in the WSH documentation...
0
 

Author Comment

by:TrEaSoN
ID: 1844640
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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now