Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] RE:Delete reg entries with subkey

Expand Messages
  • Jenda Krynicky
    From: Jorge Goncalvez ... Assuming you have my Win32::Registry2 patch ( http://Jenda.Krynicky.cz/#Win32::Registry2 )
    Message 1 of 2 , Feb 5, 2002
    • 0 Attachment
      From: Jorge Goncalvez <goncal11@...>

      > Hi, I have this code:
      >
      > use Win32::Registry;
      >
      > my $Register ="Software";
      > my $Register2=".DEFAULT\\Software";
      > my $hkey;
      > my $delete='Cygnus Solutions';
      > my %rkey=(
      > $HKEY_LOCAL_MACHINE=>$Register,
      > $HKEY_CURRENT_USER=>$Register,
      > $HKEY_USERS=>$Register2
      > );
      > for($HKEY_LOCAL_MACHINE,$HKEY_CURRENT_USER,$HKEY_USERS) {
      > $_->Open($rkey{$_},$hkey)|| die $!;
      > $hkey->DeleteKey($delete);

      Assuming you have my Win32::Registry2 patch
      ( http://Jenda.Krynicky.cz/#Win32::Registry2 ) installed you may
      use :

      $hkey->DeleteKey($delete, 1);

      Jenda


      =========== Jenda@... == http://Jenda.Krynicky.cz ==========
      There is a reason for living. There must be. I've seen it somewhere.
      It's just that in the mess on my table ... and in my brain.
      I can't find it.
      --- me
    Your message has been successfully submitted and would be delivered to recipients shortly.