Click to See Complete Forum and Search --> : VB6 is this possible?


November 24th, 1999, 01:02 AM
I made a simple web browser which displays a website which is located on a floppy disk it works very nice during run time. My question is how can I make an executable so the website on the floppy is included in the executale?

(whenever I use the make project1 exe. the only thing that is made into an exe. is the web browser. I need to know how to add the information from the floppy)

Any help is greatly appreciated,
James
cjbox@msn.com

Hastur
November 24th, 1999, 03:05 AM
Hi,
The only way is to copy your website into a folder you'll create in the install directory of you application. You will have to replace your paths into you application by paths beginning by App.Path.
e.g your page was on your floppy disk and was called index.html.
Create a directory where your app is installed, e.g. if your app is in "C:\VB\MyApp\", then create "C:\VB\MyApp\MySite"
Copy your web pages in it.
Replace all your paths like the follwing :
If your path was : MyPath = "A:\Index.html"

then replace it by MyPath = App.Path & "\MySite\Index.html"



Of course, if you create an install package of your application, don't forget to include your directory and you site in it.

Regards.
Hastur

November 24th, 1999, 04:26 AM
Thank you! I'll try it out.

James
cjbox@msn.com