Home
Category:
VB

tdavids.com random access mind
TDAVIDS SCRIPT SITES
TD Scripts
php-scripts
Script School
2002-04-13 14:18:29

How to auto run from CD to local html page from www.adultnetsurprise.com

"There is a way to make a very short Visual Basic app to get around that using Win32API calls"

Awhile back, I had someone approach me at Script School about how to auto-run from a CD to an html page that is also on the CD. I had to look this one up and provide that information back.

Here's what you have to do:

Step 1. open any text editor and create a file named: autorun.inf

Step 2. Insert the following 3 lines in the code window below into the file:

[autorun]
open=iexplore.exe PAGENAME.html
icon=THEICON.ico

PAGENAME = pagename that you store in the root on the CD
THEICON = ico file for that page or application

-------
That's all there is to it.

But what if the person doesn't have Internet Explorer? Or what if they have something other than Internet Explorer associated to read html files?

There is a way to make a very short Visual Basic app to get around that using Win32API calls.

If you would like to know how to do that, just visit:
http://visualbasic.about.com/library/weekly/aa021201a.htm

If you don't have VB to create the executable mentioned in that article, it's your lucky day, I have already done that and would be happy to email you a copy if you just drop me a line and ask nicely (throwing up a link to this site would be nice too for my time, but not mandatory) :)


Categories:
Auctions(2) Billing / E-Commerce(3) Blogs(1) Business, general(11) Content Buying/Producing(2) Domains(1) Family, general(5) Gaming(1) Graphic / Design Tip(4) Hosting(1) htaccess(1) Humor(6) Legal(7) Marketing, Promotion(4) Movie_Reviews(1) Newbies(7) PHP(2) Politics(3) Programming, general(5) Satire(2) Search Engines(2) Spam(15) VB(1) Webmastering, general(16) Windows Tips(4)

Copyright 2001-2002 TDavids.com / KMR Enterprises All Rights Reserved