CD Autorun How-to?
croc_
New
Ok, I know how to make a CD have autorun capabilities.
What I want is for it to open an HTML file when the CD is inserted, for a menu of the contents. I don't know how to get it to open the file. Usually you put "open=folder\programname.exe folder\file.ext" in the Autorun.inf file, but I just want it to open the file using the default browser. If I take out the executable part of that line it gives me an error, if I put in "iexplore.exe" or something similar it also gives me an error. Any suggestions?
What I want is for it to open an HTML file when the CD is inserted, for a menu of the contents. I don't know how to get it to open the file. Usually you put "open=folder\programname.exe folder\file.ext" in the Autorun.inf file, but I just want it to open the file using the default browser. If I take out the executable part of that line it gives me an error, if I put in "iexplore.exe" or something similar it also gives me an error. Any suggestions?
0
Comments
Essentially, either you indlude what you want to run, or use something on the computer. To use something on HD, it is best to use an absolute full path. So, find iexplore.exe and tell the autorun thing exactly where it is in quotes, including program name and extension. Then when you build your ISO set, know where on CD the HTML file you want to run is, and run it with a relative path using a system variable path for front of path. I have not done this with XP, does anyone know how to grab the current path and last used previous path in XP with system variable value lookups???
John.
I just want the HTML file to be opened like it would if they were to double click it, but on insertion of the cd instead. I am sure its a simple line in the autorun.inf, anyone know how?
Other way is to feed IE a command in format file:// instead of invoking http:// then IE will know it is looking at a file to open local to system. So, you invoke IE, but tell it file://d:\html\index.htm for path. Problem is CD drives do not have same drive ID on all computers. So you need something that picks up what drive was read from to get the autorun.inf file opened. Normally an .exe sets variables for itself using an inf or .cfg file when it starts up and then the program knows these things. To do them directly you have to play with syntax or look at a CD that does this now unless you have a system var index-- and I don't, for these variables, for XP.
Ever used IE as a file browser on your own computer, or Windows Explorer as a web browser??? They are both interlinked in large part....
John D.
Yes to your last 2 questions.
I guess I have to make the file a PDF with HTML links embedded and run acrobat off the cd. Unless anyone knows how to Autorun the HTML file directly off the cd ...
http://www.short-media.com/forum/showthread.php?t=8705&highlight=browsercall
we have a winner!!
Thanks!! Saved me a lot of trouble.
Now my boss can have his digital catalog, and a nice little HTML menu for easy access and he can stop buggin me about it.
http://www.autorun-cd.com/default.asp?ppc=google1_1
John D.