日期:2014-05-18 浏览次数:20782 次
import java.io.IOException;
public class Te {
/**
* @param args
* @throws IOException
* @throws IOException
* @throws InterruptedException
*/
public static void main(String[] args) throws IOException, InterruptedException {
// TODO Auto-generated method stub
Process process = Runtime.getRuntime().exec("cmd.exe dir");
process.waitFor( );
}
}