TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Not sure if this is what you are looking for, but here's the source code of a Java servlet that does what I think you are asking. Just change the directory variable to your dir or add a little form that takes a dir. It includes a link to the file (in the File Name field) so you can open it within a browser.
Sample output:
Full path File Name Readable? Writable? File Type Revision Date File Size
c:\temp\2xl8t.txt 2xl8t.txt true true txt Tue Sep 10 13:41:39 EDT 2002 2015
c:\temp\baby1.jpg baby1.jpg true true jpg Tue Aug 27 17:09:53 EDT 2002 27462
c:\temp\baby2.jpg baby2.jpg true true jpg Tue Aug 27 17:10:43 EDT 2002 27351
c:\temp\baby3.jpg baby3.jpg true false jpg Tue Aug 27 17:12:19 EDT 2002 27255
Enjoy.
Matthew J. Horn
Sr. Technical Writer
< m a c r o m e d i a >
public String getFileType(String fileName) {
String f = new String();
StringTokenizer st = new StringTokenizer(fileName,".");
while (st.hasMoreTokens()) {
f = st.nextToken();
}
if (f.equalsIgnoreCase("doc")) {
f = "word doc";
}
if (f.equalsIgnoreCase("zip")) {
f = "archive";
}
//... etc
return f;
}
}
-----Original Message-----
From: EBoulet -at- Exchange -dot- WebMD -dot- net [mailto:EBoulet -at- Exchange -dot- WebMD -dot- net]
Sent: Wednesday, September 11, 2002 3:46 PM
To: TECHWR-L
Subject: Document Archives/Repositories
Do you all know of any tools for creating & maintaining document
repositories or archives on the web? By document repositories, I mean lists
of links to documents in various formats, including Office, Acrobat, Zip,
Executable files, etc. By tools, I mean software programs, scripts, etc that
do things like:
- Generate document lists on a web page automatically, for instance from a
file folder
- Publish document properties with the document in the list, such as
revision date, filesize, filetype - for instance, for an MS Office document,
could you automatically extract the Properties entered for the MS Office
file and show the document properties on a web page?
- Allow users to select a multiple documents to print and then print them
all when a button is selected (rather than printing them one at a time)
I look on the web, but the only useful thing I found is software that will
monitor file folders for new file versions and automatically post them to
your web site.
Thanks!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check out the new release of RoboDemo, our easy-to-use tutorial software.
Plus, buy RoboHelp Office in August and save $100 with our mail-in rebate.
Get details and download free trial versions at http://www.ehelp.com/techwr-l
Acrobat & FrameMaker Seminars: PDF Best Practices, FrameMaker-to-Acrobat
Advanced Techniques, FM Template Design, Single Sourcing with FrameMaker
in Brussels (Oct), and in Montreal & Dallas (Dec): http://www.microtype.com/1
---
You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.