1. shell to MS explorer

Can some one show me how from EU to shell to ms explorer and pass it a html
file name to open?

thanks if you can.

George Walters

new topic     » topic index » view message » categorize

2. Re: shell to MS explorer

"c:\program files\Internet Explorer\iexplore.exe www.yoururlhere.com" 
works.  Have you tried that yet?

--On Tuesday, January 15, 2002 11:52 AM -0500 gwalters at sc.rr.com wrote:rr

>
> Can some one show me how from EU to shell to ms explorer and pass it a
> html file name to open?
>
> thanks if you can.
>
> George Walters
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: shell to MS explorer

I have found this doc for VB but the following command returns a -1 from IE
apparently. any helpful ideas on why this won't work?

key = system_exec ("d:\\Microsoft Internet\\IExplorer.exe
D:\\euphoria\\ACUdata\\DUMP.HTM",0)

Private Sub StartWithArguments() 'Declare and instantiate a new process
component. Dim myproc As System.Diagnostics.Process myproc = New
System.Diagnostics.Process 'Do not receive an event when the process exits.
myproc.EnableRaisingEvents = False 'Start Internet Explorer, passing in a
web page. myproc.Start("IExplore.exe", "http://www.microsoft.com") End Sub

George Walters

----- Original Message -----
From: <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, January 15, 2002 11:52 AM
Subject: shell to MS explorer


>
> Can some one show me how from EU to shell to ms explorer and pass it a
html
> file name to open?
>
> thanks if you can.
>
> George Walters
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: shell to MS explorer

Well, I can see two things:
1) The path is wrong. d:\Microsoft Internet isn't it, most likely, unless 
you did some kind of custom install.
2) The executable name is also wrong.  Iexplorer.exe is NOT the name of the 
executable, it is Iexplore.exe.

I suggest you run a search on your system for iexplore.exe, which will give 
you the full and correct pathname.

--On Tuesday, January 15, 2002 1:12 PM -0500 gwalters at sc.rr.com wrote:rr

>
> I have found this doc for VB but the following command returns a -1 from
> IE apparently. any helpful ideas on why this won't work?
>
> key = system_exec ("d:\\Microsoft Internet\\IExplorer.exe
> D:\\euphoria\\ACUdata\\DUMP.HTM",0)
>
> Private Sub StartWithArguments() 'Declare and instantiate a new process
> component. Dim myproc As System.Diagnostics.Process myproc = New
> System.Diagnostics.Process 'Do not receive an event when the process
> exits. myproc.EnableRaisingEvents = False 'Start Internet Explorer,
> passing in a web page. myproc.Start("IExplore.exe",
> "http://www.microsoft.com") End Sub
>
> George Walters
>
> ----- Original Message -----
> From: <gwalters at sc.rr.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Tuesday, January 15, 2002 11:52 AM
> Subject: shell to MS explorer
>
>
>> Can some one show me how from EU to shell to ms explorer and pass it a
> html
>> file name to open?
>>
>> thanks if you can.
>>
>> George Walters
>>
>>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: shell to MS explorer

I did mispell it put that didn't make any diff. It was installed on the d
drive so the path is ok i beleive.

George Walters
3418 Wilmot Ave.
Columbia, SC 29205
803/765-1128(work)
803/771-4700(home)
803/422-1648(cell when on)
----- Original Message -----
From: "Ted Fines" <fines at macalester.edu>
To: "EUforum" <EUforum at topica.com>
Subject: Re: shell to MS explorer


>
> Well, I can see two things:
> 1) The path is wrong. d:\Microsoft Internet isn't it, most likely, unless
> you did some kind of custom install.
> 2) The executable name is also wrong.  Iexplorer.exe is NOT the name of
the
> executable, it is Iexplore.exe.
>
> I suggest you run a search on your system for iexplore.exe, which will
give
> you the full and correct pathname.
>
> --On Tuesday, January 15, 2002 1:12 PM -0500 gwalters at sc.rr.com wrote:rr
>
> >
> > I have found this doc for VB but the following command returns a -1 from
> > IE apparently. any helpful ideas on why this won't work?
> >
> > key = system_exec ("d:\\Microsoft Internet\\IExplorer.exe
> > D:\\euphoria\\ACUdata\\DUMP.HTM",0)
> >
> > Private Sub StartWithArguments() 'Declare and instantiate a new process
> > component. Dim myproc As System.Diagnostics.Process myproc = New
> > System.Diagnostics.Process 'Do not receive an event when the process
> > exits. myproc.EnableRaisingEvents = False 'Start Internet Explorer,
> > passing in a web page. myproc.Start("IExplore.exe",
> > "http://www.microsoft.com") End Sub
> >
> > George Walters
> >
> > ----- Original Message -----
> > From: <gwalters at sc.rr.com>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Tuesday, January 15, 2002 11:52 AM
> > Subject: shell to MS explorer
> >
> >
> >> Can some one show me how from EU to shell to ms explorer and pass it a
> > html
> >> file name to open?
> >>
> >> thanks if you can.
> >>
> >> George Walters
> >>
> >>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: shell to MS explorer

Here is one such wrapper. You could make this more generic than it is.

--ShellExecute(
--    HWND hwnd, 
--    LPCTSTR lpOperation,
--    LPCTSTR lpFile, 
--    LPCTSTR lpParameters, 
--    LPCTSTR lpDirectory,
--    INT nShowCmd

xShellExecute = define_c_func(shell32_dll, "ShellExecuteA",
        {C_LONG, C_LONG, C_LONG, C_LONG, C_LONG, C_INT}, C_LONG)

global function ShellExecute(atom hw, sequence op, sequence pgm, sequence arg,
object isdir, integer sw)
    atom ppgm, parg, pdir, inst
    ppgm = allocate_string(pgm)
    parg = allocate_string(arg)
    if not integer isdir then
        pdir = allocate_string(isdir)
    end if
    inst = c_func(xShellExecute, {hw, op, ppgm, parg, pdir, sw})
    free(ppgm)
    free(parg)
    return inst
end function

<example:>

object junk
junk = ShellExecute(handle, "open", file, NULL, NULL, SW_SHOWNORMAL)

Euman
euman at bellsouth.net

Q: Are we monetarily insane?
A: YES

new topic     » goto parent     » topic index » view message » categorize

7. Re: shell to MS explorer

thanks, but that is way over my head.....I'll chew on it a while.

George Walters

----- Original Message -----
From: "Euman" <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: shell to MS explorer


>
> Here is one such wrapper. You could make this more generic than it is.
>
> --ShellExecute(
> --    HWND hwnd,
> --    LPCTSTR lpOperation,
> --    LPCTSTR lpFile,
> --    LPCTSTR lpParameters,
> --    LPCTSTR lpDirectory,
> --    INT nShowCmd
>
> xShellExecute = define_c_func(shell32_dll, "ShellExecuteA",
>         {C_LONG, C_LONG, C_LONG, C_LONG, C_LONG, C_INT}, C_LONG)
>
> global function ShellExecute(atom hw, sequence op, sequence pgm, sequence
arg, object isdir, integer sw)
>     atom ppgm, parg, pdir, inst
>     ppgm = allocate_string(pgm)
>     parg = allocate_string(arg)
>     if not integer isdir then
>         pdir = allocate_string(isdir)
>     end if
>     inst = c_func(xShellExecute, {hw, op, ppgm, parg, pdir, sw})
>     free(ppgm)
>     free(parg)
>     return inst
> end function
>
> <example:>
>
> object junk
> junk = ShellExecute(handle, "open", file, NULL, NULL, SW_SHOWNORMAL)
>
> Euman
> euman at bellsouth.net
>
> Q: Are we monetarily insane?
> A: YES
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

8. Re: shell to MS explorer

I use this program to open all programs I use for internet:

without warning
include win32lib.ew

integer SimpleWin

procedure open_file (sequence file)
 shellExecute ("", file, SW_SHOWMAXIMIZED)
end procedure

procedure open_dir (sequence dir_path)
 shellExecute ("explore", dir_path, SW_SHOWMAXIMIZED)
end procedure

procedure onOpen_SimpleWin ()
 open_file ("C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE")
 open_file ("C:\\Program Files\\Outlook Express\\msimn.exe")
 open_file ("C:\\Program Files\\GetRight\\getright.exe")
 shellExecute ("", "C:\\Program Files\\intertel\\InterTel.exe",
SW_SHOWNORMAL)
 open_dir ("C:\\Downloaded\\new downloaded")

        w32Proc( xPostQuitMessage, { 0 } )
end procedure

SimpleWin = create( Window, "Executing", 0, 0, 0, 200, 100, 0 )
onOpen [SimpleWin] = routine_id ("onOpen_SimpleWin")

WinMain( SimpleWin, Normal )


----- Original Message -----
From: <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, January 15, 2002 5:52 PM
Subject: shell to MS explorer


>
> Can some one show me how from EU to shell to ms explorer and pass it a
html
> file name to open?
>
> thanks if you can.
>
> George Walters
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

9. Re: shell to MS explorer

voila, that did it!! the "start" was the trick..thanks for the help of all. 

George Walters

----- Original Message ----- 
From: "Elliott Sales de Andrade" <quantum_analyst at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: shell to MS explorer


> 
> I finally figured this out. you should run this
> 
> system("start iexplore http://www.rapideuphoria.com/", 0)
>         ^^ this is what was missing
> I think you need to use start because it is a Win32 app and system() and 
> system_exec() use a DOS call which needs start to call Win312 apps.
> 
> 
> gwalters at sc.rr.com wrote:
> > Can some one show me how from EU to shell to ms explorer and pass it a 
> > html
> > file name to open?
> > 
> > thanks if you can.
> > 
> > George Walters
> > 
> > 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu