package com.bowen.dong;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;
/**
*
* @author bw
*
*/
public class Test {
public static void main(String[] args) throws IOException, InterruptedException {
//获取Runtime类对象,注意不能new对象
Runtime rt = Runtime.getRuntime();
//调用Windows系统命令,打开记事本,得到表示进程的process对象
Process pro =rt.exec("notepad.exe");
Thread.sleep(3000);//程序休眠3秒
pro.destroy();//杀掉进程
}
}