J
Josh
In my Java app, I would like to open some help files in the user's
default browser when they click a Help button. I found lots of
examples using this type of call:
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler
file://wherever/help.html");
(Substitute the real file path for "wherever")
But my problem is that I'm using a dynamic help system where the URL
that I am supposed to put into a browser to reach a given help file is
of this form:
file://wherever/index.htm?chapter=test&topic=help1
If I use that URL string in the call to Runtime.exec(), I get an error
message titled "Problem with Shortcut", saying "Unable to open file
""file://wherever/index.htm?chapter=test&topic=help1"".
It opens correctly if I remove the tag stuff at the end and just open:
file://wherever/index.htm
Any ideas on how I can do this?
default browser when they click a Help button. I found lots of
examples using this type of call:
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler
file://wherever/help.html");
(Substitute the real file path for "wherever")
But my problem is that I'm using a dynamic help system where the URL
that I am supposed to put into a browser to reach a given help file is
of this form:
file://wherever/index.htm?chapter=test&topic=help1
If I use that URL string in the call to Runtime.exec(), I get an error
message titled "Problem with Shortcut", saying "Unable to open file
""file://wherever/index.htm?chapter=test&topic=help1"".
It opens correctly if I remove the tag stuff at the end and just open:
file://wherever/index.htm
Any ideas on how I can do this?