try it. have fun!

crayannie (心爱的人在加拿大)
import java.io.*;
import java.util.*;

public class testExec{
public static void main(String args[]){
Runtime rt = Runtime.getRuntime();
try {
rt.exec("notepad.exe");
}catch(Exception e){
System.out.println(e);
}
}
}
(#72025@0)
2001-5-16 -05:00

回到话题: A java question about starting batch file via Runtime.exec.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=72025