NEVERSLEEP
Programmer
1:
on my 2kpro machine...
print $^O; # returns MSWin32
how can i be sure the client os is 2k ?
2:
how can i use the Open($Register,$hkey) here
to display all sub directory also.
this must also apply to GetKeys & GetValues methods
here what i got (this dont do sub! please optimize my code)
thanks alot! ---------------------------------------
someone knowledge ends where
someone else knowledge starts
on my 2kpro machine...
print $^O; # returns MSWin32
how can i be sure the client os is 2k ?
2:
how can i use the Open($Register,$hkey) here
to display all sub directory also.
this must also apply to GetKeys & GetValues methods
here what i got (this dont do sub! please optimize my code)
Code:
use strict;
use Win32::Registry;
my $Register = "";
my ($hkey, @key_list, $key, $root);
my @roots = ($HKEY_CLASSES_ROOT,$HKEY_CURRENT_USER,$HKEY_LOCAL_MACHINE,$HKEY_CURRENT_CONFIG);
foreach $root (@roots) {
$root->Open($Register,$hkey) || die "\n$! dead in ($root)" ;
$hkey->GetKeys(\@key_list);
print "$Register keys\n";
foreach $key (@key_list) {
print "$key\n";
}
$hkey->Close();
}
print "\nhit enter to quit";
sleep unless <stdin>;
exit;
thanks alot! ---------------------------------------

someone knowledge ends where
someone else knowledge starts