Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:35:05+00:00 2026-06-04T19:35:05+00:00

I am trying to create an automatically generate a table of contents page for

  • 0

I am trying to create an automatically generate a table of contents page for a directory with a variable number of HTML files. I have created this:

<ul>
    <%
    dim fs,fo,x
    set fs=Server.CreateObject("Scripting.FileSystemObject")
    set fo=fs.GetFolder("c:\test\html\")

    for each x in fo.files
        newName=Split(x.Name, ".")
        'Print the name of all files in the test folder
        for each y in newName
            Response.write("<li><a href='" & x.Name & "'>" & y & "</a></li>")
        next
    next

    set fo=nothing
    set fs=nothing
    %>
</ul>

The problem here is that the links are generated using the file name, so I get things like “introduction” instead of “Introduction to This Topic.” The html > head > title element in each HTML document is the link text I want to use. Is there a way I can extract it from each file?

(I am open to a solution that doesn’t use ASP. I created this simply because it was what I had available to me. I’m not very familiar with ASP or its capabilities, so there might be a more efficient way to tackle this problem.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:35:06+00:00Added an answer on June 4, 2026 at 7:35 pm

    There’s no saying that all of the files in a folder are actually used and are part of a site, or how these files relate in a sitemap structure. It’s better to approach this from a crawler on the outside than a file-system on the inside.

    There are various sitemap generating services on the web that you can use. You can grab the results and edit them to suit your needs and post them as your own directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a process to automatically generate thumbnails of the images uploaded
I'm trying to create a cron job which will automatically delete .jpg files from
Currently I'm trying to automatically generate a create script for all my SQL jobs
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I'm trying to create a script that will automatically select In Person Interview in
I am trying to create a C# script to login automatically to a website
I'm trying to create a pane where stocks quotes are displayed, but that automatically
I am trying to create crosstab queries in PostgreSQL such that it automatically generates
I'm trying to generate an actionlink on a page that has the following route:
I have a PostGreSQL database with the following data model: CREATE TABLE staff (s_id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.