I know how to read a registry string, but how do i take an entire folder out of the registry and save it as a .reg file ?

Thanks,
Saga