The Artima Developer Community
Sponsored Link

Java Answers Forum
Opening a browser by passing an argument??

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ram

Posts: 19
Nickname: srkothuru
Registered: Jul, 2003

Opening a browser by passing an argument?? Posted: Jul 25, 2003 2:22 PM
Reply to this message Reply
Advertisement
Can i open a file in a browser (IE)by passing an argument.
I am trying to use the following.


String directorynew = "users\\"+ user + "\\" + session + "\\" + job + "\\0\\" ;
try{
Runtime.getRuntime().exec("cmd /c rundll32 url.dll,FileProtocolHandler" + directory + "molden.wrl" );

or

Runtime.getRuntime().exec("C:Program Files\\Internet Explorer\\IExplore.exe "+ directory + "molden.wrl" );

}


Is this correct?? if not how do i do that. The problem with me is, the user, job and session changes all the time. SO the place where the file is created is not the same everytime. Please help me.
Thanks

Topic: help me plz Previous Topic   Next Topic Topic: don't understand why checked exceptions get swallowed.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use