// 设置开机自动启动的CMD命令
String autoRumCmd = "reg add HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v aa.exe /t REG_SZ /d F:\\project\\cc\\server\\aa.exe /f";
try {
Runtime.getRuntime().exec( autoRumCmd );
} catch (IOException e) {
java调用cmd程序
猜你喜欢
转载自wanghuanqiu.iteye.com/blog/1491625
今日推荐
周排行