PDA

View Full Version : when I click the open button nothing happens



Badger
12-09-2004, 01:53 AM
I have placed a customers web site on a cd but when I click the open button
nothing happend the action code I used is "
File.Open("AutoPlay\\Docs\\index.html", "", SW_SHOWNORMAL);

and to exit I use :
Application.Exit();
The exit one works OK

The only thing I can think of is the path to the index.html
On the Cd there ate 3 files :
Auto Play
autorun.exe and
autorun.inf

The index.html file is not visavle in the Autoplay as I placed all the working files in the
root folder. does this mean I should place all working files in the Autoplay\Docs folder to match the existing path for the index.html.?

badger :cool

JimS
12-09-2004, 04:56 AM
Yes, place all the web site files in the Autoplay\Docs folder and keep the file structure of the website to keep from breaking relative links. Speaking of relative links, the links in the web site html must be relative.

Badger
12-09-2004, 05:03 AM
Thanks for responding jimS

Badger :cool

JimS
12-09-2004, 05:23 AM
Let me know if you run into any problems :)

TJ_Tigger
12-09-2004, 08:58 AM
Have you tried File.OpenURL as well? Or open the file in a web object using Web.Load?

Tigg

Badger
12-13-2004, 04:05 AM
Thanks guys I have it doing what its suposed to do now.
Badger :cool

JimS
12-13-2004, 04:07 AM
Glad you got it going!