programming-examples/perl/Win32/Creates new key in the registry.pl
2019-11-15 12:59:38 +01:00

19 lines
318 B
Perl

#!/usr/bin/perl -w
use Win32::Registry;
$key_name = "SOFTWARE\\YourKey";
$status = $HKEY_LOCAL_MACHINE->Create( $key_name, $keyobj );
if ($status) {
$keyobj->SetValueEx( 'Value', # Name
0, # Reserved.
REG_SZ, # Type
'Comments' );
$keyobj->Close();
}