Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/test/tr
In directory sc8-pr-cvs1:/tmp/cvs-serv16044/test/tr
Modified Files:
TestExec.java
Log Message:
Maj version prepro 0.04
Index: TestExec.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/test/tr/TestExec.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestExec.java 11 Dec 2003 12:50:55 -0000 1.1
--- TestExec.java 21 Jan 2004 11:07:28 -0000 1.2
***************
*** 16,19 ****
--- 16,25 ----
*/
public class TestExec {
+ // The default system browser under windows.
+ private static final String WIN_PATH = "rundll32";
+
+ // The flag to display a url.
+ private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
+
/**
*
***************
*** 24,30 ****
public static void main(String[] args) {
! String[] com=new String[] {"command.com","/C","c:\\temp\\toto.bat"};
try{
! Runtime.getRuntime().exec(com);
} catch (Exception e){
--- 30,36 ----
public static void main(String[] args) {
! String cmd=WIN_PATH+" "+WIN_FLAG+" "+args[0];
try{
! Runtime.getRuntime().exec(cmd);
} catch (Exception e){
|