What i want to do is programmatically delete the registry key 'HKEY_CURRENT_USER\Software\Atlas Computers Ltd' along with all sub-keys. I do this before running my test suite as part of a process that ensures that the starting conditions for the tests are constant. I currently do this by calling an application I have written in C++,
You can remove a registry key along with all its values and subkeys using the Clear method of the Section object:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">//JScript
var regKey = "\\Software\\Atlas Computers Ltd";
var section = Storages.Registry(regKey, HKEY_CURRENT_USER);
}</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Please see the 'Section Object' help topic for details.