PDA

View Full Version : Computer programming help needed


Jeff240sx
10-21-2002, 10:37 AM
I have created a website for a company, and now they want the entire CD on a distributable cd-rom format, with an autorun file to open the first page of the site automatically, when the cd is inserted into the tray.
My problem.  
An autorun file is easy enough to create, notepad, save as .inf file.  Thats cool, but it won't open a straight .html file.
One solution is to buy some $200 program to open the damn web page... but I don't wanna do that.
So,
can anyone either give me some pointers to a cheaper alternative to that program, or if you have the software, create an autorun file to open a page "index.htm"?
If you can, post here, or email me at [email protected]
Thanks,
-Jeff

DragonReborn214
10-21-2002, 07:44 PM
Why not create a shortcut to the html document and then rename the shortcut to something that can be opened with the autorun file?

Example

short.exe is really a shortcut to index.html, just renamed.

Jeff240sx
10-22-2002, 10:55 AM
I was kinda hoping that it would have been something that simple.
I created a shortcut to index.htm, called it short.exe.  Burned the autorun.ini file and short.exe to a CD, but it says that autorun can't open that file, because it is not a valid win32 application.  It's a webpage.
Any other thoughts, suggestions?
I know a lot of people on here are IT people... help me out, please!
-Jeff

DragonReborn214
10-24-2002, 12:32 AM
Method 1: Use Windows Shell

The following ‘autorun.inf’ file invokes the command processor to start a full screen browser on the html file ‘index.htm’:

[autorun]
open=command /c start /max index.htm

Be aware that the use of ‘command’ and ‘start’ restrict this to machines running Windows. It is therefore not portable to other platforms.

max power
10-24-2002, 06:46 AM
this is similar to what Dragonreborn was talking about..
http://www.burzurq.com/forum/autorun_html.html

also, you can do open=\%windir\explorer.exe file.html
you might want to double check that syntax, though.

Jeff240sx
10-24-2002, 08:39 AM
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (max power @ Oct. 24 2002,09:46)</td></tr><tr><td id="QUOTE">this is similar to what Dragonreborn was talking about..
http://www.burzurq.com/forum/autorun_html.html

also, you can do open=\%windir\explorer.exe file.html
you might want to double check that syntax, though.</td></tr></table><span id='postcolor'>
I'll try Dragon's method when I get back to my house... I'm on a business trip right now...
But as for this one... How will that command search their computer and open explorer.exe? &nbsp;It seems that people will always change their directories. &nbsp;Could you explain this a little more, and what "\%windir" does?
Thanks again!
-Jeff