Open Web Browser and pass URL with Query string

S

sanjeev.atvankar

Hi Guru,

I create console application that Open Web Browser and pass URL with
query string.
My code is as below:

public static void main(String[] args)
{
try
{
String command = "cmd /c start "+
"http://localhost:8084/NCC/Banking?"+
"CTRL_CODE=GetAudFile"; System.out.println("URL is :"+command);
Runtime.getRuntime().exec(command);
return;
}
catch (Exception e)
{
System.out.println("Error :: "+e);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top