String url = "http://java.sun.com";;
String command = null;
String osName = System.getProperty("os.name");
osName = osName.toUpperCase();
if(osName.startsWith("WIN")) {
command = "rundll32 url.dll,FileProtocolHandler " +
.
Ph. 7612929-1059
> -Original Message-
> From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 2:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: opening IE through java program
>
>
> First of all, create a string array with the elements
First of all, create a string array with the elements of a browser exe path
and the file you desire to open in your browser. Next, create an instance of
Runtime class and invoke exec methods to execute the browser exe. This
returns a Process object.
Here is sample code:
public class opening
{
try
iexplore "http://server" from command prompt.
iexplore is the command and "http://server" is the parameter.
>try
>
>iexplore "http://server"
>
>-saravanan
>
>
>
>>= Original Message From "A mailing list for discussion about Sun
>Microsystem's Java Servlet API Technology."
try
iexplore "http://server"
-saravanan
>= Original Message From "A mailing list for discussion about Sun
Microsystem's Java Servlet API Technology."
<[EMAIL PROTECTED]> =
>hi,
>
>I have the requirement to open explorer with URL through java program
>running at client sid