注册表导入

public void execTimeReg() { //写注册表 try { Runtime rt = Runtime.getRuntime(); //导入注册表文件 String command = "regedit //s " + "test.reg"; Process proc = rt.exec(command); } catch (Throwable t) { t.printStackTrace(); } }

你可能感兴趣的:(注册表导入)