it still not working i tried this:
use Win32::Registry;
my $Register ="Software";
my $Register2=".DEFAULT\\Software";
my $hkey;
$HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!;
$hkey->DeleteKey("Cygwin2");
$hkey->Close();
$HKEY_CURRENT_USER->Open($Register,$hkey)|| die $!;
$hkey->DeleteKey("Cygwin2");
$hkey->Close();
$HKEY_USERS->Open($Register2,$hkey)|| die $!;
$hkey->DeleteKey("Cygwin2");
$hkey->Close();

it worked but it is a bit repeating code how can i do tto use a foreach loop to 
simpler the code.
Thanks


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to