Is there a way for regedit to run in script, not in background. With /e (export) it runs in background and returns control to the console (and would return control to a script as well, i think). I want to wait for it to finish.
You can use REG.EXE
Lots of info from the ever useful Petri