Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Directory List

Posted on 1998-07-15
5
Medium Priority
?
156 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 600 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

876 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