Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TWebBrowser: How do I open a local file?

3,693 views
Skip to first unread message

Seth Kintigh

unread,
Feb 24, 2002, 5:47:33 AM2/24/02
to
I want to open a file that is in the current directory, i.e. "readme.html"

I know I could hard code the directory, ("c:/..../...../..../.../.../...")
but that is not so portable.
I could also have a dialog ask every time I open the one and only file, but
that is not so slick.

Thanks in advance.


Michael Kelly

unread,
Feb 24, 2002, 11:26:51 AM2/24/02
to
On Sun, 24 Feb 2002 05:47:33 -0500, "Seth Kintigh" <skin...@yahoo.com> wrote:

>I want to open a file that is in the current directory, i.e. "readme.html"

Um, how about "readme.html" ??
If it's in the current directory then
all you need is the filename.

--

"I don't want to belong to any club that would have me as a member."
-- Groucho Marx

Seth Kintigh

unread,
Feb 24, 2002, 11:55:32 PM2/24/02
to
Obviously, if that worked I wouldn't be asking.

"Michael Kelly" <mkelly0...@netzero.net> wrote in message
news:i15i7uornqg5a05nn...@4ax.com...

Salim Nair

unread,
Feb 25, 2002, 1:24:16 AM2/25/02
to

WebBrowser1.Navigate( 'file://' + GetCurrentDir + '/readme.htm' );


"Seth Kintigh" <skin...@yahoo.com> wrote in message
news:3c78c531_1@dnews...

Tim Verhoeven

unread,
Feb 25, 2002, 2:44:46 AM2/25/02
to
Try this

Webbrowser.navigate(ExtractFileDir(Application.Exename) + '\readme.htm');

"Salim Nair" <sa...@reinfom.com> wrote in message news:3c79d893$1_2@dnews...

Seth Kintigh

unread,
Feb 25, 2002, 3:07:34 AM2/25/02
to
Those both worked, thank you so much!!!!
At last, after many years, my fractal program is complete!!!!!!!!!!!!!!!!

"Tim Verhoeven" <t...@basix.co.za> wrote in message news:3c79eaf8_1@dnews...

Kelvin Westlake

unread,
Feb 25, 2002, 4:19:13 PM2/25/02
to
heh .. you charging for it?? I think they'll want royalties ..
:D

"Seth Kintigh" <skin...@yahoo.com> wrote in message

news:3c79f131$1_1@dnews...

Michael Kelly

unread,
Feb 25, 2002, 4:33:23 PM2/25/02
to
On Sun, 24 Feb 2002 23:55:32 -0500, "Seth Kintigh" <skin...@yahoo.com> wrote:

>Obviously, if that worked I wouldn't be asking.

Obviously it was obvious to you since you know
what you did or didn't try. I don't do ESP.

0 new messages