I need to include an html page (table of contents) on a CD/DVD. I'd like the html page to open automatically when the user puts the CD/DVD in their machine. Is there a way to do this (the MSDN cds do this) either by purchasing software or otherwise?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
ShelExec is your ticket. It is free and allows you to specify an optional ico file too.
You can create simple executable yourself. In Visual Studio in example.
Not sure it can be call one-liner but it is not far from it :-)
To avoid hard-coding you can try passing path as a parameter in command line.
autorun file must be added to the CD. File can look like this.
Please bear in mind that it will not work on iOS though.
It's dead simple. I use a program called Autorun Pro. Check out this guide.
I used (the free version of) AutoRunPro
I remember when I was confronted with the problem once
just wouldn't work on most PC's. I used a program called AutorunPro.EXE, just copied it in the root, and the autorun.inf was :
Moreover, you can open several programs, pages, ... with this method in one go.
In either case : test your method beforehand, you don't actually have to burn a CD/DVD in order to do that : look here
You should be able to do with a relatively simple
autorun.inf
file in the CD/DVD's root directory:If you don't want to trust to third party programs, or skip over them entirely you can read the MSDN AutoRun Reference. It's not too bad.