Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Directory List

Posted on 1998-07-15
Medium Priority
Last Modified: 2012-05-05
   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.
Question by:TrEaSoN
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

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 & "<br>"

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


Author Comment

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

Author Comment

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.

Expert Comment

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

Author Comment

ID: 1844640

  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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

715 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