When I use the following to delete a registry key:
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.RegDelete "HKLM\SOFTWARE\ODBC\ODBC.INI\"
It won't delete the registry key if there is a subkey (for example; "HKLM\SOFTWARE\ODBC\ODBC.INI\Test". Is there a way to delete a registry key and all of its subkeys without having to delete the subkeys first?
Set WshShell = WScript.CreateObject("WScript.Shell"
WshShell.RegDelete "HKLM\SOFTWARE\ODBC\ODBC.INI\"
It won't delete the registry key if there is a subkey (for example; "HKLM\SOFTWARE\ODBC\ODBC.INI\Test". Is there a way to delete a registry key and all of its subkeys without having to delete the subkeys first?