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

Re: Launch a url in my web browser?

Thread Previous | Thread Next
January 31, 2002 12:47
Re: Launch a url in my web browser?
Message ID:
In NT you can use the start command with a URL.  So to start a brower 
at a specific location: 

system( "start" );

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" );

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." <> wrote:

>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:
>>>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 
>>>I was wonder if a script or module already exist.
>>>Or, what would such written script look like?
>>>Thanks.  Alan.
>>Ahmed Moustafa
>> |
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About