Perl: the Markov chain saw | |
PerlMonks |
[OT] Using Module TieRegistry? for reading and pasting registrykey into another sectionby mh88 (Novice) |
on Feb 21, 2018 at 17:38 UTC ( [id://1209682]=perlquestion: print w/replies, xml ) | Need Help?? |
mh88 has asked for the wisdom of the Perl Monks concerning the following question: Hi valuable Monks, the problem: Read a given (Windows) Registry key and store the "value" into another registry Key. (Office 12 Upgrade to Office 16 and migrate the Templates Path) -> Any way to accomplish this is welcome, even if it is not Perl as long as your are not offended ;-). I tried it already with a .bat file too, but that was broken cause of the "hexcode" what i want to do: Read this:
and directly "paste" it into the section listed below or save it into variable?
This translates to the Path G:\Office2007\... but this is different path for other users, so i must read the key and store the same REG_EXPAND_SZ value into the ...\16.0 path. I read the Modules examples but its not possible for me to accomplish this, and i dont understand this completely. I only get some "subkeys" listed but i cant read or store it in the needed section. I am at my other machine and saved the code on local drive, so i cant provide an example of my (very bad) code right now. Perhaps you did something similar already and maybe could provide me with your code which i may could adjust to my needs? I tried it with StrawberryPortable which seems to include the Tie::Registry functionality. I could only use Modules which are integrated into a portable Perl Version. Thanks for your help mh88
Back to
Seekers of Perl Wisdom
|
|