Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
You can use the DeleteKey method to delete a registry subkey. The script in Listing 16.15 deletes the subkey HKLM\SOFTWARE\System Admin Scripting Guide, added by the script in Listing 16.8. If you have not already run Listing 16.8, you should do so before running the following script. Otherwise, there will be no subkey for this demonstration script to delete.
Listing 16.15 contains a script that deletes the HKLM\SOFTWARE\System Admin Scripting Guide subkey created by the script in Listing 16.8. To carry out this task, the script must perform the following steps:
Listing 16.15 Deleting a Registry Key
|
|
Send us your feedback | « Previous | Next » |