Hive_Unload Syntax
#1
Posted 24 August 2008 - 10:23 PM
The syntax is simply:
Hive_Unload
But you can add a parameter just to make the code more easy to understand
Pedro
#2
Posted 24 August 2008 - 10:53 PM
Regards,
Galapo.
#3
Posted 24 August 2008 - 11:29 PM
Would you detail the exact syntax for reg_del as well?
I'm trying to document as much as possible for future reference.
Thanks.
#4
Posted 24 August 2008 - 11:44 PM
Reg_Del like Reg_Add is defined only in Sript.projectUpdated registry tutorial as well: http://www.boot-land...?showtopic=5518
Would you detail the exact syntax for reg_del as well?
I'm trying to document as much as possible for future reference.
Thanks.
reg_add=RegWrite,"HKLM" reg_del=RegDelete,"HKLM"So syntax is :
Reg_Del,Section,Key
Pedro
#5
Posted 25 August 2008 - 08:48 AM
#6
Posted 25 August 2008 - 11:57 AM
And what happens, if two hives are open simultaniously:I see all people using Hive_Unload with a parameter but it is not required
The syntax is simply:
Hive_Unload
But you can add a parameter just to make the code more easy to understand
Pedro
Hive_Load,HKU
Hive_Load,HKLM
...
...
Hive_Unload,???
Hive_Unload,???
With 'classic' syntax this can be done.
Peter
#7
Posted 25 August 2008 - 12:15 PM
---
If more than one hive is loaded then the unload function should mention which hive.
---------------
Otherwise we can as well just allow one hive at a time.
Don't really see much inconvenience, in the the scripts where multiple hives are loaded it also becomes a bit more difficult to keep the proper registry data organized and understandable for other developers.
The current rawreg code should also be adapted to support multiple hives if this is desired.
---
Maybe this topic should be moved to the development section?
http://www.boot-land...php?showforum=7
#8
Posted 25 August 2008 - 12:26 PM
It 's not possible for nowAnd what happens, if two hives are open simultaniously:
Hive_Load,HKU
Hive_Load,HKLM
...
...
Hive_Unload,???
Hive_Unload,???
With 'classic' syntax this can be done.
Peter
Is it necessairy to have this ?
Pedro
#9
Posted 25 August 2008 - 12:34 PM
Technically I do not see any situation where it is necessary.Is it necessairy to have this ?
But I could imagine that a script programmer (nowhere described as forbidden) opens all hives at script start and closes them as script exit.
Or: The easiest way to copy some values from one hive to another one: have both open simultaniously.
But don't worry. I think that reaction is necessary on the first real complain, when there is no workaround.
Peter
#10
Posted 04 September 2008 - 07:23 AM
eg reg load HKLM\setup g:\winxp\i386\setupreg.hiv
loads this hive to HKLM\setup
eg: reg unload HKLM\setup
unloads whatever hive is mounted here.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users