For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2005 > perl : Importing registry keys









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author perl : Importing registry keys
ublit@yahoo.com

2005-02-03, 3:55 pm

Hi,

After many attempts I am landing here to request much needed help.
Using Win32::TieRegistry module I was successfully able to export a
registry key (to a file) without any problem, even though the file I
get ends up in binary format. I cannot seem to find a way to export
(not load) this file back to the registry. I even tried with
Win32::Registry module to do the same.

Even I applied the patch from Jenda Krynicky and making a call
(please see below), dies without any error message.

Win32::Registry::Import("Keys.reg") or die "Can't import: $^E\n";

Can someone help me please.

John Bokma

2005-02-03, 8:55 pm

wrote:

> Hi,
>
> After many attempts I am landing here to request much needed help.
> Using Win32::TieRegistry module I was successfully able to export a
> registry key (to a file) without any problem, even though the file I
> get ends up in binary format. I cannot seem to find a way to export
> (not load) this file back to the registry. I even tried with
> Win32::Registry module to do the same.
>
> Even I applied the patch from Jenda Krynicky and making a call
> (please see below), dies without any error message.
>
> Win32::Registry::Import("Keys.reg") or die "Can't import: $^E\n";
>
> Can someone help me please.


Quick peak at the documentation shows a LoadKey and SaveKey. No idea if
that solves your problem.

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

ublit@yahoo.com

2005-02-03, 8:55 pm

Hi John,
I believe you meant RegLoadKey and RegSaveKey functions. In
fact, RegSaveKey works fine for exporting a file. Unfortunately
RegLoadKey doesn't help me in this case. I really want to import rather
than loading the .reg file.



John Bokma wrote:
> wrote:
>
I[color=darkred]
$^E\n";[color=darkred]
>
> Quick peak at the documentation shows a LoadKey and SaveKey. No idea

if
> that solves your problem.
>
> --
> John Small Perl scripts: http://johnbokma.com/perl/
> Perl programmer available: http://castleamber.com/
> Happy Customers: http://castleamber.com/testimonials.html


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com