View Full Version : RegConnectRegistry
gomer
03-01-2001, 04:23 PM
Okay. I need to edit the registry of a remote NT box via a perl script. I have "RegConnectRegistry" connecting to the remote machine but how do I create keys and values within those keys. Any help would be appreciated. Thanks.
RWSchlatter
03-03-2001, 11:56 PM
Q: Perl running as part of the Window Scripting Host?
If yes, you should be able to use RegRead / RegWrite methods of the WshShell object.
______________
Regards - Richard
gomer
03-05-2001, 02:54 PM
I don't understand. I'm running Perl 5.003. No WSH on these systems that I'mn aware of.
RWSchlatter
03-05-2001, 06:22 PM
that why J was asking, you are running Perl native and not within WSH (such an implementation exists too).
So that means J cannot give you an exact answer - mine would have been for the WSH environment.
But you mentioned the RegConnectRegistry function. Is this a call to a Perl runtime support for the registry or is it a passthru to the Windows API ? If it is a passthru you should be able to find the other APIs for the registry at the same place where you did find RegConnectRegistry.
If it is thru a runtime support module (DLL) then J think the other calls you are looking for will have the same name as the Win API.
But probably you are looking for the doc of the APIs.
To be found in Microsofts Platform SDK / Base Services / Registry
and online reading starts at:
http://msdn.microsoft.com/library/psdk/winbase/regapi_5fax.htm (http://msdn.microsoft.com/library/default.asp?PP=/library/toc/psdk/base/base0-11.xml&tocPath=base0-11&URL=/library/psdk/winbase/regapi_9bzt.htm>http://msdn.microsoft.com/library/default.asp?PP=/library/toc/psdk/base/base0-11.xml&tocPath=base0-11&URL=/library/psdk/winbase/regapi_9bzt.htm</a>
or)
PS. this forum is (mainly) opened for scripting using the WSH scripting with VBScript or JScript, so you my have look further to receive an answer to your Perl problem.
______________
Regards - Richard
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.