Re: Registry Key entry and access
Posted By:
Hans_Chicoine
Posted On:
Thursday, April 19, 2001 07:42 AM
Hi joseph
I did the creation part in a simple way :
1- I wrote a bit of code that generates a proper *.reg file
2- ... Then i ran regedit this way : Process proc = Runtime.getRuntime().exec("regedit /s " + registryFileName);
if (proc.waitFor() != 0) {
throw new IOException("Problem with regedit");
}
/s= silencious ... it seems.
Otherwise, you if realy need a two way relation with your registry key, there seems to be some JNI apis that do that (I never tried them).
Regards
Hans