1. What is the command for Internet Explorer?

For Linux I have:

prog =  -- mozilla or nautilus or whatever
system(prog & " \"www.google.com/search   -- etc.


This works for Linux. It searches a string on Google.

The question is:
How to do that on Windows?
I seem to be unable to find the command for Internet Explorer.

new topic     » topic index » view message » categorize

2. Re: What is the command for Internet Explorer?

Jerry Story wrote:
> 
> For Linux I have:
> 
> }}}
<eucode>
> prog =  -- mozilla or nautilus or whatever
> system(prog & " \"www.google.com/search   -- etc.
> <font color="#330033"></eucode>
{{{
</font>
> 
> This works for Linux. It searches a string on Google.
> 
> The question is:
> How to do that on Windows?
> I seem to be unable to find the command for Internet Explorer.

Even better, actually, you can just do:
system( "start www.google.com/search", -2 )

...and it will use the user's default browser.

Matt Lewis

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

3. Re: What is the command for Internet Explorer?

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > For Linux I have:
> > 
> > }}}
<eucode>
> > prog =  -- mozilla or nautilus or whatever
> > system(prog & " \"www.google.com/search   -- etc.
> <font color="#330033">> <font color=</font><font
> color="#00A033">"#330033"</font><font color="#330033">></eucode>
{{{
</font></font>
> > 
> > This works for Linux. It searches a string on Google.
> > 
> > The question is:
> > How to do that on Windows?
> > I seem to be unable to find the command for Internet Explorer.
> 
> Even better, actually, you can just do:
> }}}
<eucode>
> system( "start www.google.com/search", -2 )
> <font color="#330033"></eucode>
{{{
</font>
> ...and it will use the user's default browser.
> 
> Matt Lewis
> 

On debian there are two ways of doing approximately the same thing. You can use
one of the two commands sensible-browser and x-www-browser. Though I don't know
how "standard" they are.

Regards, Alexander Toresson

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

4. Re: What is the command for Internet Explorer?

Do you specifically want internet explorer, or just whatever program
the user has installed for web browsing? (I suggest the latter)

For internet explorer:=20
system("iexplore.exe \"http://webpage.com\"",2)

For whichever program is registered to handle the file, use start.exe
system("start.exe \"c:\My Documents\test.doc\"",2) --opens test.doc in
the default program, probably microsoft word.
So to open the web page in the default web browser:

system("start http://www.webpage.com/",2)



On 7/29/05, Jerry Story <guest at rapideuphoria.com> wrote:
>
>
> posted by: Jerry Story <jstory at ocii.com>
>
> For Linux I have:
>
> }}}
<eucode>
> prog =  -- mozilla or nautilus or whatever
> system(prog & " \"www.google.com/search   -- etc.
> </eucode>
{{{

>
> This works for Linux. It searches a string on Google.
>
> The question is:
> How to do that on Windows?
> I seem to be unable to find the command for Internet Explorer.
>
>
>
>
>


--
MrTrick
----------

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

Search



Quick Links

User menu

Not signed in.

Misc Menu