Help - Search - Members - Calendar
Full Version: HTML/Javascript based CD Menu frontend
HTMLHelp Forums > Programming > Client-side Scripting
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).


Save it as autorun.inf on the CD/DVD.

If it doesn't work and you don't find another way, you could have just the html file in the main directory and name it file_list.html or similar and put the PDFs in their own folder. Most people would click such a html file.
Christian J
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....

dir /b /a
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2020 Invision Power Services, Inc.