Subject: Re: Opening local URL in browser
From: Olaf Bachmann <[email-masked]>
To: Tor Lillqvist <[email-masked]>
Cc: Olaf Bachmann <[email-masked]>, [email-masked], [email-masked]
Date: Wed, 3 May 2000 13:48:10 +0200 (MET DST)

Tor Lillqvist writes:
> Olaf Bachmann writes:
>  >   ShellExecute(NULL, "open", NULL, "index.html", "d:\\home\\obachman\\tmp\\", SW_SHOWDEFAULT);
> 
> I think that should be either:
> 
>   ShellExecute(NULL, "open", "file:///X|/path/to/index.html", NULL, "d:\\home\\obachman\\tmp\\", SW_SHOWDEFAULT);
> 
> where X is the drive letter, and /path/to/ is the directory where
> index.html is, with backslashes replaced by slashes, or:
> 
>   ShellExecute(NULL, "open", "X:\\path\\to\\index.html", NULL, "d:\\home\\obachman\\tmp\\", SW_SHOWDEFAULT);
> 
> with a full normal Windows pathname.

Yes and no. I mixed up the parameters to ShellExecute. The following
now works for me:

ShellExecute(NULL, "open", "C:\\index.html", NULL, NULL, SW_SHOWDEFAULT);

Thanks to all who replied.

Olaf

--
Want to unsubscribe from this list?
Send a message to [email-masked]