delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/03/06:47:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <m12mxdS-000F1SC@nepomuck.mathematik.uni-kl.de>
Date: Wed, 3 May 2000 13:48:10 +0200 (MET DST)
From: Olaf Bachmann <obachman AT mathematik DOT uni-kl DOT de>
To: Tor Lillqvist <tml AT iki DOT fi>
Cc: Olaf Bachmann <obachman AT mathematik DOT uni-kl DOT de>, xemacs-nt AT xemacs DOT org,
cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Opening local URL in browser
In-Reply-To: <14607.12925.710000.794993@gargle.gargle.HOWL>
References: <m12mdQV-000F1SC AT nepomuck DOT mathematik DOT uni-kl DOT de>
<14607 DOT 12925 DOT 710000 DOT 794993 AT gargle DOT gargle DOT HOWL>
X-Mailer: VM 6.34 under 20.3 "Vatican City" XEmacs Lucid
Mime-Version: 1.0 (generated by tm-edit 7.108)

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 cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019