Re: shell_exec: how activate html in same directory as calling
Brian,
Thanks! That works! I was thinking I needed to express the file as a
"relative url" & was searching how to do that.
Now, your example opened the .htm in an *existing* browser window (when
open); is there a way to make it open a *new* browser window instead?
Dan
----- Original Message -----
From: "Brian K. Broker" <bkb at CNW.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, September 01, 2000 4:38 AM
Subject: Re: shell_exec: how activate html in same directory as calling
program
> ----- Original Message -----
> From: "Dan B Moyer"
> Sent: Friday, September 01, 2000 2:53 AM
>
> > Does anyone know how I can use the "shellExecute" command to activate an
> > html file *in the same directory* as the program asserting the command?
> >
> > I got this from EuDesigner, to use as a prototype example:
> > shellExecute("", "file:///" & EuDir & "\\HTML\\Refman.htm", 1)
>
> Try:
>
> shellExecute( "open", "myfile.htm", SW_SHOWNORMAL )
>
> As long as your program doesn't change the directory so that it's
different
> from where it was launched, it should work fine. Also keep in mind that
> this won't work by itself, your program must have a main window launched
> through "WinMain".
>
> for proposed documentation see:
>
> &H=0&O=D&T=1
>
> -- Brian
|
Not Categorized, Please Help
|
|