In message <11************ *********@m73g2 000cwd.googlegr oups.com>, Fri,
3 Nov 2006 10:59:15, "do********@gma il.com" <do********@gma il.com>
writes
>I'm hoping for help with the auto-generation of a hyperlinked listing
of all files in a directory. The server I use does not auto-generate
this. So, when someone comes to this directory and thus opens
index.htm, I want that file to show a listing of all files in the
directory with hyperlinks to them.
If you can manage with incomplete automation - the tool you use, as
author, to manage that directory ought to be able to give you a list of
the file names in it. For example, WS_FTP has a DirInfo button which
shows the files in Notepad. You can save that file, and you can
copy'n'paste its contents.
You can then write a HTML/JS page, to be run locally by you, with a
TextArea into which you paste the raw list. A button can then invoke
javascript code to transform the list to be either the core or the
entirety of the desired index.htm, which you can copy out and upload to
your site. My <URL:http://www.merlyn.demo n.co.uk/js-quick.htmhas an
Indt button which alters the TextArea.
With other programming tools, you can make it more automatic along the
same lines; for example, a Windows batch file might FTP the directory
and invoke WSH CSCRIPT javascript/vbscript to do the transform before
uploading.
That was written for Windows; it should be possible to do similarly on
other systems.
It's a good idea to read the newsgroup and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 IE 6
<URL:http://www.jibbering.c om/faq/>? JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.