Mark
Wed Dec 24 11:15:04 CST 2003
I should have made that more clear the "c:\test\test2" is the name of the
value I want to delete, I don't care what data it has in it.
Mark
"Dave Patrick" <mail@Nospam.DSPatrick.com> wrote in message
news:u#tG05jyDHA.3436@tk2msftngp13.phx.gbl...
> What is the name of the Reg_Sz string value? Delete the value by name not
by
> contents. Else if you want to keep the Reg_Sz string value but empty the
> string then use RegWrite method to write "" into it.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft MVP [Windows NT/2000 Operating Systems]
>
http://www.microsoft.com/protect.
>
> "Mark" wrote:
> | I want to delete a registry value that has a path in it, like the
> following:
> |
> | c:\test\test2
> |
> | If I try the following:
> |
> | Dim WshShell
> | WshShell.RegDelete "HKLM\Software\Script Test\Key1\c:\test\test2"
> |
> | I get the following error: Unable to remove registry key
> | "HKLM\Software\Script Test\Key1\c:\test\test2". I think this probably
> | because it is seeing the c:\test\test2 as registry keys and not a value.
> Is
> | there anything else I can do? I do not want to delete the entire
registry
> | key.
> |
> | Thanks and Merry Christmas.
> | Mark
> |
> |
>
>