1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Index of Files

Discussion in 'Other PC Software' started by Ken, 2006/02/01.

  1. 2006/02/01
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    Where can I find HTML software that can do something like the following where all files are linked together?
    Date and time not needed.

    Index of file:///c|/Games/Solitaire
    Up to higher level directory
    File: FreeSolitaire.exe 928 KB 9/8/1998 3:03:00 AM
    File: INSTALL.LOG 1 KB 1/11/1999 2:46:38 PM
    File: NViewLib.dll 259 KB 3/12/1997 11:54:26 PM
    File: Readme.txt 4 KB 9/8/1998 3:03:00 AM
    File: SOL.EXE 168 KB 8/24/1996 12:11:10 PM
    File: SOL.INI 1 KB 12/29/2005 12:07:28 AM
    File: UNWISE.EXE 125 KB 9/9/2002 12:27:34 PM
     
    Ken,
    #1
  2. 2006/02/01
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Please explain what you want to do. The example you give doesn't show us anything other than a list of files. Be carfeful in your choice of words too, html & link mean specific things.
     

  3. to hide this advert.

  4. 2006/02/01
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    Ultimately I want to put some files in web space for others to view. Here is an example: http://ftp.arl.mil/ftp/historic-computers/jpeg/

    I have Belarc Advisor installed that lists local files in a similiar way in HTML. I looked in the Belarc folder and couldn't find the software to create an index file.

    I am hoping there is some generic software around that I can utilize.
     
    Last edited: 2006/02/02
    Ken,
    #3
  5. 2006/02/01
    Welshjim

    Welshjim Inactive

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    Ken--Still not too clear what you want to do since HTML does not seem to be necessary to make a list such as in your first post.
    If it is to create a text file of all files in a folder or directory, then perhaps
    http://www.karenware.com/powertools/ptdirprn.asp
    However, that would not satisfy the type of list you show in your second post.
     
  6. 2006/02/02
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    There's no need to create an html file that display a linked list of files in a folder on the web server, the web server automatically creates such a page for you. Just upload the files to a directory and that's that. Then access the directory using it's address as in your example.

    By default, the web server searches a directory for a file called index.html, index.shtml, index.htm. If there is no such file then the web server generates a linked list of files in the directory and that's what you see in the browser.

    If the directory already has a file called index.xxx then delete it and the server will take over.

    example:
    http://idealorg.com/computers

    But all this depends on how the host configures the web server. Some do not allow the auto indexing of files in a directory, some do. If your host has directory indexing turned off, then you can use one of the free tools here to create the directory index.html file and upload it along with your files.
    http://www.snapfiles.com/freeware/webpublish/fwmiscwp.html
     
    Last edited: 2006/02/02
  7. 2006/02/02
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    My ISP only supplies software to create a homepage. I want to fool them by puting up an index. Thanks for the leads, I will persue them.
     
    Ken,
    #6
  8. 2006/02/02
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    What happens if you just put the files there? Do they get auto-indexed by the server?
     
  9. 2006/02/02
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    The server just won't see them. It only looks for a file named index.htm and will display a homepage from the file if it is written in HTML. If I try to link to a file folder from a homepage, it comes up with access forbidden. I guess this is called trying to fight city hall. Thanks for helping.
     
    Ken,
    #8
  10. 2006/02/02
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    This isn't really my thing but can't you just create another page with a list of the files and without an index.htm? Then put a link to it on your homepage?
     
  11. 2006/02/03
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    That's waht the apps in the link I provided do.
     
  12. 2006/02/03
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    For future reference, save this code in Notepad and use it to make your own index pages. Change upper case letter words to suit your needs and save the edited text as index.htm.

    Code:
    <!doctype html public  "-//w3c//dtd html 4.01 transitional//en ">
    <html>
    <head>
    <title>YOUR-TITLE-HERE</title>
    <meta http-equiv= "content-type" content= "text/html; charset=iso-8859-1 ">
    <meta name= "keywords" content= "YOUR-KEYWORDS-HERE-SEPARATED-BY-A-COMMA ">
    <meta name= "description" content= "YOUR-DESCRIPTION-HERE ">
    <meta name= "author" content= "YOUR-NAME-HERE ">
    </head>
    <body>
    <p>RETURN TO<a href= "../ ">HOMEPAGE</a></p>
    <h3>MY FILES</h3>
    <p>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 1</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 2</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 3</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 4</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 5</a>
    </p>
    </body>
    </html>
    
    If want to link to an image file then use a line like this:
    Code:
    <a href= "FOLDER-NAME/FILE-NAME.XXX" WIDTH= "XXX" HEIGHT= "XXX" ALT= "DESCRIPTION-OF-IMAGE-HERE ">IMAGE # 1</a>
     
    Last edited: 2006/02/03
  13. 2006/02/03
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    The software that user friendly ISP's provide automatically change the index as files are added or deleted from the site. With the above code, do I have to add new folders to the list? ie #6 etc. Perhaps if I only add folders into an existing folder, I will be OK. Thanks again for your help.
     
    Ken,
    #12
  14. 2006/02/03
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    I can get this up on my Homepage:
    RETURN TO HOMEPAGE
    MY FILES

    FILE # 1
    FILE # 2
    FILE # 3
    FILE # 4
    FILE # 5
    It doesn't matter what I call the HOMEPAGE, it links back to the ISP.
    When I click on FILE#1, I get NOT FOUND with the exact file names I have on the site. I know the files are there; I guess I need to learn more about HTML.
     
    Ken,
    #13
  15. 2006/02/03
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    What is the folder name that your files are in?
    It would appear that they are in your root directory, meaning they are in you main folder.
    Post your code here & I'll correct it for you and provide instructions for folder structure.
     
  16. 2006/02/03
    Ken

    Ken Well-Known Member Thread Starter

    Joined:
    2006/01/10
    Messages:
    241
    Likes Received:
    0
    It seems like the ISP server can only see an index.htm file and nothing else.
    At the site I have a folder named share. in it is a folder named FILES. In the FILES folder is a photo named ptrk19a.JPG.
    Here is the code:
    <!doctype html public "-//w3c//dtd html 4.01 transitional//en ">
    <html>
    <head>
    <title>KGB Files</title>
    <meta http-equiv= "content-type" content= "text/html; charset=iso-8859-1 ">
    <meta name= "keywords" content=FILES>
    <meta name= "description" content=FILES>
    <meta name= "author" content=kgbove>
    </head>
    <body>
    <p>RETURN TO<a href= "../ ">HOMEPAGE</a></p>
    <h3>MY FILES</h3>
    <p>
    <a href=Share/FILES>FILE # 1</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 2</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 3</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 4</a><br>
    <a href= "FOLDER-NAME/FILE-NAME.XXX ">FILE # 5</a>
    </p>
    </body>
    </html>

    Here is the address for the site:
    http://mysite.verizon.net/kgbove/index.htm
     
    Ken,
    #15
  17. 2006/02/03
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    This is where the picture of the old car is located now:
    http: // mysite.verizon.net /kgbove /share /FILES /ptrk19a.JPG
    http://mysite.verizon.net/kgbove/share/FILES/ptrk19a.JPG

    Keep is simple. Get rid of the folder called share and get rid of the folder called FILES. Set up the folder structure like this.

    main folder
    ----index.htm
    ----images folder
    --------ptrk19a.jpg
    --------otherpic.jpg
    --------otherpic.jpg
    --------otherpic.jpg

    Put all your image files in the folder called images and put the index.htm in the main folder. As you can see in my diagram, the main folder contains index.htm and a folder called images. Other folders can be put there for other types of files, such as music. Thus, the structure would look like this:

    main folder
    ----index.htm
    ----images folder
    --------ptrk19a.jpg
    --------otherpic.jpg
    --------otherpic.jpg
    --------otherpic.jpg
    ----music
    --------volare.mp3
    --------myway.mp3
    --------nyny.mp3

    Code:
    <!doctype html public  "-//w3c//dtd html 4.01 transitional//en ">
    <html>
    <head>
    <title>KGB Files</title>
    <meta http-equiv= "content-type" content= "text/html; charset=iso-8859-1 ">
    <meta name= "keywords" content= "pictures,images,downloads ">
    <meta name= "description" content= "KGB files, pictures and other stuff ">
    <meta name= "author" content=kgbove>
    </head>
    <body>
    <h3>MY FILES</h3>
    <p>
    <a href= "images/ptrk19a.jpg ">Old Car</a><br>
    <a href= "images/ptrk19a.jpg ">Picture # 2</a><br>
    </p<a href= "music/myway.mp3 ">Sintatra - My Way</a><br>>
    </body>
    </html>
    
    Get in the habit of using lower case letters for folder and file names. Folder and file names are case sensitive. For example, ptrk19a.jpg is not the same file as Ptrk19a.jpg.

    If have more questions, send me a private message and we can then do this a lot faster via email.
     
    Last edited: 2006/02/03

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.