develooper Front page | perl.beginners | Postings from January 2002

Re: Launch a url in my web browser?

Thread Previous | Thread Next
From:
John
Date:
January 31, 2002 12:47
Subject:
Re: Launch a url in my web browser?
Message ID:
jUsT.aNoTheR.mEsSaGe.iD.101251005125777@jpw3.com
In NT you can use the start command with a URL.  So to start a brower 
at a specific location: 

system( "start http://jpw3.com/search.html" );

Depending on how you have IE configured, this might start a new window.
If it doesn't and you need to use a new browser window: 

system( "start iexplore http://jpw3.com/search.html" );

Maybe I am not following.  Depending on how you have cmd.exe configured 
it might leave a console window behind, I think this can only be 
eliminated by using a bat file instead of perl?  Actually this probably 
is better suited to a batch file, if you are just exec'ing.

At Thursday, 31 January 2002, "Alan C." <acummings@snowcrest.net> wrote:

>Hi,
>
>My oversight, I forgot to say that this would be on my own local 
machine a 
>Win 2k box
>
>Since I am sometimes in a text editor that has ability to launch 
a perl 
>file then: the handyness to get a url launched by using a perl script 
to do so
>
>Thanks.  Alan.
>
>At 06:41 AM 1/31/2002 -0800, you wrote:
>>I believe that is not possible. A server side script can't launch a 
>>client's browser.
>>
>>Alan C. wrote:
>>
>>>Hi,
>>>Win 2k with MSIE web browser
>>>Whether or not my web browser is already been launched/opened
>>>Can a Perl script do that task?  Or a perl module?
>>>Able to do without bringing up a command prompt as part of the 
process?
>>>I was wonder if a script or module already exist.
>>>Or, what would such written script look like?
>>>Thanks.  Alan.
>>
>>--
>>Ahmed Moustafa
>>amoustafa@pobox.com | http://pobox.com/~amoustafa
>>
>>
>>--
>>To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>>For additional commands, e-mail: beginners-help@perl.org
>>
>
>-- 
>To unsubscribe, e-mail: beginners-unsubscribe@perl.org
>For additional commands, e-mail: beginners-help@perl.org
>








Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About