Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recreate HTML code based on file directory content

Status
Not open for further replies.

JoJ

Programmer
May 3, 2002
71
CA
When it comes to web page solutions, i am nowhere near current. So if you find my solution below to be "s", then let me know.

Elements of the requirement:
1) a specific directory with *.PDF files (user reports).
2) each month a bunch more *.PDF files are added
3) HTML files that have links to these PDF files have to be editted every month to include the new files.

To solve this, i intend to write a script that reads in all filenames of filetype PDF in the directory and recreate the HTML source codes using text concatenation.

The idea is for the client to just dump PDF files (with standard naming convention) in the directory then run the script to replace the old HTML codes with the new one.

I was thinking of using either one or combinations of the following: VBA, Acrobat-Javascript, or WinBatch.

Is this a "s" (stone age) solution?
 
Sounds like a good solution to me. If your server supports ASP you could write a script or use a script in ASP. I am not familiar with the later 2 script types you mentioned, but the idea of using a script to update the links on the page is a good solution.

Tiffany

Microsoft MVP - FrontPage
 
Thanks.

Before going ahead with writing the script, I wanted to be sure from this forum's FrontPage experts that I am not wasting my time. Thinking that there might already be a built-in function in FrontPage.

I ended up using Access VBA.
 
if you can run perl scripts then give dirwrap ago


DirWrap is a CGI script written in PERL that takes the contents of a specified directory and wraps it in an html template of your choice. It was written primarily to provide a means for outputting directory contents on web servers that are configured to disallow directory listings via URL but it can be used with any web server that allows CGI scripts to be run.

Aaron Taylor
John Mutch Electronics
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top