TRegistry.SaveKey

Hi,

I seem to be unable to get the SaveKey method of TRegistry to work. It generates a 0 byte file but I can't seem to get it to do much else.

Here's my code:

  Registry:=TRegistry.Create;
  Registry.RootKey:=HKEY_CURRENT_USER;
  Registry.SaveKey('\Software\RegTest\Settings\','c:\regtest');
  Registry.Free;

Which seems straightforward enough.

If this is a known issue is there any other simple ways of getting data out of the registry into a file that I can import easily on another computer.

Thanks,

Richard