Opening local URL in browser

Tor Lillqvist tml@iki.fi
Tue May 2 12:55:00 GMT 2000


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



More information about the Cygwin mailing list