Our little society wants to give members the option of receiving a DVD of magazine back issues. There are less than 100 members and less than 100 back issue pdfs.
They take up 2 DVDs or a single 8GB memory stick.
Can anyone help me out with a simple autorun local webpage that can be stored on the DVD, or memory stick, automatically list the file names and allow the user to click on the filename to view the pdf? Either code wise or a pointer to a free app or source code.
Kind of like the CDs we got on the front of computer hobby magazines when I was young (and dinosaurs ruled the earth as my granddaughter is fond of saying). I have some (10 years ago and not since) experience with authoring in HTML and PHP - but clearly PHP is wrong in this instance.
Any help greatly appreciated.
While I think I understand what you want I don't think it is possible with HTML. Web pages can't read the local file system. If all your users use Windows then you might be able to use a '.hta' web page. HTA pages have less restrictions and you could create an ActiveX file system object to scan the CD to get the file names. But this would only work in Windows.
You could write a web page to launch each .pdf file but you would have to write the entire thing (not able to scan for files).
Everything is on the CD/DVD, so I think it should work. It works locally, with all files on the hard drive so...
This is how auto-running a HTML file on a CD used to be done. Frankly I don't know if it's still working, but you won't lose much time trying it out. My computer doesn't even have a player, so I can't try myself.
Type the below in a plain text file (if index.html is what your html file is called).
You could let PHP on your own computer generate HTML code, then manually copy that HTML to the DVD as static HTML. But it's probably no more work doing it all manually.
Well, Windows is capable of creating a directory listing. Then it's just Find & Replace.
It may differ on different version of Windows, but on Win10 this works to get just the file names without path, size and whatnot. Bring up a command prompt in the directory with the PDFs and....
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)