O'Reilly logo

Win32 Perl Programming: The Standard Extensions, Second Edition by Dave Roth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Win32::Registry

When you connect to a remote Registry and either save a key to a file or load a key from a file, it is important to note that the path to the file specified is relative to the computer on which the Registry lives. Suppose, for example, that a script connects to \\ServerA and tries to load a key from c:\temp\key.dat using the following command:

$Remote_HKEY_LOCAL_MACHINE->Load( "TestKey", "c:\\temp\\key.dat" ); 

The file that will be loaded is in \\ServerA’s c:\temp directory. If the file exists on the machine running the script but not on \\ServerA, the function will fail. The same is true for the Save() method—the file will be saved on \\ServerA.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required