|
Posted by ublit on February 3, 2005, 11:34 am
Please log in for more thread options
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: $^En";
Can someone help me please.
|
|
Posted by John Bokma on February 3, 2005, 9:07 pm
Please log in for more thread options
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: $^En";
>
> 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
|
|
Posted by ublit on February 3, 2005, 1:52 pm
Please log in for more thread options 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:
>
> > 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:
$^En";
> >
> > 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
|
| Similar Threads | Posted | | Modules for hash functions? (ie, common algorithms for computing hash keys, not manipulating perl hashes) | August 26, 2006, 7:08 pm |
| Zertifikate/Keys | September 17, 2007, 4:16 am |
| How to use Registry functions | January 30, 2006, 8:47 am |
| CGI.pm and ModPerl::Registry | December 21, 2007, 11:20 pm |
| Curses::UI::Widget - binding function keys | July 18, 2006, 1:53 am |
| Return keys from $db->DataHash directly into an array | September 16, 2007, 11:56 am |
| Windows Registry manipulation using Unix | April 29, 2005, 11:46 am |
| Module to use for win32 registry access? | April 4, 2007, 8:32 pm |
| Will XML::Simple work with keys, strings, integers, and dates? | March 21, 2005, 10:43 am |
| $db->DataHash does not return keys/fields in same order as they appear in database | September 16, 2007, 11:59 am |
|