Discussion:
Starting default browser in vb 6.0
(too old to reply)
Suad Candir
2003-09-28 19:08:00 UTC
Permalink
Hii,

I was searching for an answer to my question "how to start default browser
in VB 6.0" and I found a mail from you. I was wondering whether you can help
me. I have a file e.g. file.html on a CD.I want that when someone puts the
CD in my html file should be opened.So I have to create an "autorun.inf"
file which starts only executable files.I decided to create an vb project
which starts the default browser. But I couldn't do it. Could you please
help me ?

Thank you in advance and sorry for taking your time.

Take Care

======================================
Suad Candir ***@yahoo.com

======================================
Gene
2003-10-08 21:29:52 UTC
Permalink
Look at shellexecute or getobject. either one will follow
the associated program settings when you pass it the
filename. Of couse if the user does not have a file
association then you will need to catch the error.
-----Original Message-----
Hii,
I was searching for an answer to my question "how to
start default browser
in VB 6.0" and I found a mail from you. I was wondering
whether you can help
me. I have a file e.g. file.html on a CD.I want that
when someone puts the
CD in my html file should be opened.So I have to create
an "autorun.inf"
file which starts only executable files.I decided to
create an vb project
which starts the default browser. But I couldn't do it.
Could you please
help me ?
Thank you in advance and sorry for taking your time.
Take Care
======================================
======================================
.
ghostown
2004-01-23 00:06:17 UTC
Permalink
When ever you want to start something automatically, you have to write an
autoexec.bat that has everything the autoexec.bat has to have + your open
and play codes.
To automatically start the IE, you have to include the codes to start it in
the autoexec.bat. If you go back to the egg and find the codes of how to
automatically start programs when windows starts, you will see that the
codes to start the program are appended to the autoexec.bat. Copy those
codes into your autoexec.bat on your CD and it should work fine.

Loading...