Click to See Complete Forum and Search --> : Is there a way to do this?
nothing
08-21-2004, 12:32 PM
My friend has his website on a cd and when he puts it into the cd-rom drive, a window pops up asking "What do you want Windows to do?"
- Open folder to view files using Windows Explorer
- Take no action
etc
Inside the cd, there a page called index.html. Is there a way to make this page appear on the screen after the cd is inserted into the cd-rom drive? Thanks.
ScaryBinary
08-21-2004, 01:46 PM
I think so. You'd have to use an "autorun.inf" file. This file, which is just a regular old ASCII text file, will contain something like:
[autorun]
open=myprogram.exe
icon=myicon.ico
You put this file in the root of the CD.
I think you'd either just make the "open" parameter your HTML file, in which case Windows will hopefully know to open IE (or whatever browser the user has associated with HTML files), or maybe you can launch the browser and indicate the HTML file as a parameter.
Search Google for Autorun.inf (http://www.google.com/search?q=autorun.inf)
I'll see too if there's anything specific for files instead of executables....
ScaryBinary
08-21-2004, 01:47 PM
Here's a site that has some info:
Tech Reblic - Autorun.inf (http://techrepublic.com.com/5100-6270_11-5268081.html)
Spardan
08-23-2004, 07:55 AM
That should work fine with html files :D
If you have any cds that autorun, just look for the autorun.inf file, copy it, and change the parameters. You don't need an icon for it to work, but making one is cool because then you feel all warm inside when your icon is displayed in 'my computer' or whatever whenever the CD is in the drive... :D
nothing
08-24-2004, 02:26 AM
Thanks both of you guys, specially ScaryBinary. It worked like a charm :D
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.