home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / Code / ch38 / toc.asp < prev    next >
Encoding:
Text File  |  1997-09-21  |  534 b   |  31 lines

  1. <%
  2. Response.ContentType = "text/plain"
  3.  
  4. Set NAV = Server.CreateObject("Navigation.clsWebDirUtils")
  5.  
  6. TOCLine = "1 -t main.htm " & """" & "Employee Policy Manual" & """"
  7.  
  8. Response.Write TOCLine
  9. Response.Write vbNewLine
  10.  
  11. NAV.FilePath = Server.MapPath(".")
  12.  
  13. NAV.OutputFormat = NAV.obsTOC
  14.  
  15. NAV.ListFiles 2
  16.  
  17. i = 0
  18.  
  19. if NAV.LineCount > 1 Then
  20.  
  21.      for i = 2 to NAV.LineCount
  22.           
  23.           OutputString = NAV.lines(i + 1 - 1) & " "
  24.  
  25.           Response.write OutputString & vbNewLine
  26.  
  27.      next
  28.  
  29. end if
  30.  
  31. %>