My program produces a file of run statistics formatted as html (stats.htm).
I want to execute this file in a browser from within my program - ie. call a browser with this file as a parm.
How do I do that ?
Have tried executing a DOS command for the form "cmd /C fullpathname-of-file" but it does nothung.
Thank you very much...that worked file.
The relevant code is:
String arg = "G:/tma03/agents/stats.htm";
java.awt.Desktop desktop = java.awt.Desktop.getDesktop(); ...to set-up Desktop object
try ... to create a URI object using arg
java.net.URI uri = new java.net.URI( arg );
desktop.browse( uri ); ... to browse the URI