As to run dos commands you can simply write:
Process p = Runtime.getRuntime().exec("<<command>>");
As to view an html file in IExplorer or Netscape I think you can
just write "filename.html" in the exec String parameter because
the System under the VM automatically find the best program to
execute that file extension. So if IE is the "default browser" IE
will be opened; if Netscape do, Netscape will be opened.
Anyway "nomefile.html" will be shown!
Regards.
Luca Paganelli
"vishnu mahendra" <vi*************@yahoo.com> wrote in message
news:c2*************************@posting.google.co m...
I want to execute a html file named hai.html in c:\mydocuments folder.
How can i open this file in Internet explorer or netscape?
thank you in advance ,
vishnu