Hey everyone,

I want to know the cleanest way to look for a regestry key and if it i
there delete it. The key in question is QuickTime Task key in th
HKLM\software\microsoft\windows\currentversion\run. I want to firs
check if the key exists and if it does remove the key. This will b
placed in a login script for all users logging into the domain.

Thanks in advance


-
Kewl
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Re: Delete Reg Key by JHP

JHP
Fri Jul 16 15:33:43 CDT 2004

Why even check?.. just delete the key - if it's not found so what:

Option Explicit
On Error Resume Next

Dim WSHShell

Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegDelete "<Registry Key>"
Set WSHShell = Nothing

If you absolutely need to find it then try this:

http://www.billsway.com/vbspage/ - Registry Search Tool...

HTH

"Kewlb" <Kewlb.19i8hp@mail.codecomments.com> wrote in message
news:Kewlb.19i8hp@mail.codecomments.com...
>
> Hey everyone,
>
> I want to know the cleanest way to look for a regestry key and if it is
> there delete it. The key in question is QuickTime Task key in the
> HKLM\software\microsoft\windows\currentversion\run. I want to first
> check if the key exists and if it does remove the key. This will be
> placed in a login script for all users logging into the domain.
>
> Thanks in advance.
>
>
>
> --
> Kewlb
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>