The hive exists (keys do not) but it still won't update with the keys. The script I'm creating will have to create the new hive if it doesn't exist.
Ewen Brian Raven wrote: > Ewen Marshall <> wrote: > >> Ok.. I got it the wrong way round!!! I'm new to registry hacks with >> perl and I'm not really sure what I'm doing here. All I want to do is >> copy the hive from LMachine\\Software\\gpass\\new gpass\\consulting >> room extensions\\ to CUser\\Software\\gpass\\new gpass\\consulting >> room extensions\\. The only code I have is: >> >> use Win32::TieRegistry; >> $Registry->{"CUser\\Software\\gpass\\new gpass\\consulting room >> extensions\\"} = $Registry->{"LMachine\\Software\\gpass\\new >> gpass\\consulting room extensions\\"}; >> >> When I run it I do not get any errors however it does not create >> CUser\\Software\\gpass\\new gpass\\consulting room extensions\\. Do I >> need to save/import $registry? Is there a simpler way of doing this? >> I have read through the documentation but I'm finding it hard to >> understand. >> > > Referring you to the second part of my previous answer, does the key > "CUser\\Software\\gpass\\new gpass" exist? According to the > documentation it needs to for the copy to work. > > _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs