This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Opening local URL in browser
- To: Olaf Bachmann <obachman at mathematik dot uni-kl dot de>
- Subject: Opening local URL in browser
- From: Tor Lillqvist <tml at iki dot fi>
- Date: Tue, 2 May 2000 22:54:37 +0300 (FLE Daylight Time)
- Cc: xemacs-nt at xemacs dot org, cygwin at sourceware dot cygnus dot com
- References: <m12mdQV-000F1SC@nepomuck.mathematik.uni-kl.de>
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.
HTH,
--tml
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com