Looking for a program to convert a directory listing to HTML

Discussion in 'Computers' started by Jeff Kleist, Jun 2, 2003.

  1. Jeff Kleist

    Jeff Kleist Executive Producer

    Joined:
    Dec 4, 1999
    Messages:
    11,267
    Likes Received:
    0
    Trophy Points:
    0
    I'm trying to build a kiosk print station, and basically I need a program that will read a directory and make HTML links to it. I have about 1500 files in there, so doing it by hand is going to suck [​IMG] I want it to go to the next page every 25 entries, and preferably strip the extension.

    Anything already out there that could do this?
     
  2. John_Berger

    John_Berger Cinematographer

    Joined:
    Nov 1, 2001
    Messages:
    2,489
    Likes Received:
    0
    Trophy Points:
    0
    It's Java/JavaScript-based and it's not exactly what you want, but it seems to be at least a good starting point for you.

     
  3. Jeff Kleist

    Jeff Kleist Executive Producer

    Joined:
    Dec 4, 1999
    Messages:
    11,267
    Likes Received:
    0
    Trophy Points:
    0
    Highly unlikely. I can't program for shit [​IMG]

    That would be good if I was just trying to list directories, but it's not what I'm really going for [​IMG]
     
  4. Ken Chan

    Ken Chan Producer

    Joined:
    Apr 11, 1999
    Messages:
    3,301
    Likes Received:
    0
    Trophy Points:
    0
    Not sure what you want. Does your web server automatically create a directory page with links to each of the files? You could grab the source from that and tweak it.

    //Ken
     
  5. MikeAlletto

    MikeAlletto Cinematographer

    Joined:
    Mar 11, 2000
    Messages:
    2,369
    Likes Received:
    0
    Trophy Points:
    0
    I wrote something like that in perl about 3 years ago for work. Out on the unix server someone could drop a word or pdf file into their designated directories. When someone went to a URL it would go to the directories, collect the file names and create links. I'll see if I still got it somewhere. It was very raw though and not polished at all so it probably needs some cleanup if its going to be used for anything important.
     
  6. Ted Lee

    Ted Lee Lead Actor

    Joined:
    May 8, 2001
    Messages:
    8,390
    Likes Received:
    0
    Trophy Points:
    0

Share This Page