Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with rundll32 (open an URL in a new Brower window)

Deepak Sharma
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all!
I need some help with opening a html file in a new browser. I currently use
this in my code:
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
Where, of course, url is a string to the web site.
This works ok if there isn't a browser started on the computer. However, if a
browser is started, that browser window is used to open the url. I need some
help in forcing the browser to start a new window with the specific url.
Need some help quick here...

Thanks in advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic