What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » RegDeleteTree

RegDeleteTree
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RegDeleteTree
quote:
Originally posted by Suxsem
if I use Shell.RegDeleteTree function script return an error...
Because there is no such function or method.
The three existing function methods are:
    WshShell.RegDelete
    WshShell.RegWrite
    WshShell.RegRead

quote:
Originally posted by Suxsem
if I use Shell.RegDelete function I can't delete e subkey of a key...
how can I do?
Yes you can. But that subkey must be empty; it can not contain other subkeys. You must remove the lowest subkey first and working your way up the tree, if you want to keep on using those build-in registry object functions.

Also, specify a key-name by ending the string with a final backslash and leave the final backslash off to specify a value-name.

eg:
this will remove the value 'MindReader':
WshShell.RegDelete("HKCU\\Software\\ACME\\FortuneTeller\\MindReader");

this will remove the key 'FortuneTeller':
WshShell.RegDelete("HKCU\\Software\\ACME\\FortuneTeller\\");

All this is also explained in the Windows Scripting documentation which you can download from the Official Script Database.

-------

Otherwise, use the Windows API directly like Matikke showed.

;)

This post was edited on 06-24-2008 at 04:24 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-21-2008 06:46 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RegDeleteTree - by Suxsem on 06-21-2008 at 02:41 PM
RE: RegDeleteTree - by Matti on 06-21-2008 at 06:34 PM
RE: RegDeleteTree - by CookieRevised on 06-21-2008 at 06:46 PM
RE: RegDeleteTree - by Suxsem on 06-23-2008 at 11:15 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On