61
3
HKLM
is often used as an abbreviation for HKEY_LOCAL_MACHINE
. Somewhat unexpectedly this also appears to be true when I ask reg
for a value.
C:\>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
CurrentVersion REG_SZ 6.1
C:\>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
CurrentVersion REG_SZ 6.1
Is there a reference asserting that they are equivalent, or that one is an alias for the other? Or are there, in fact, cases where they are not the same thing?
3This is the correct answer. The full names are the only ones supported by the kernel. Any abbreviations are tool-specific. – nobody – 2014-10-08T14:21:27.450
13> it explicitly states that the availability of these shortcuts depend on the software being used and they are generally referred to as "commonly used abbreviations" It'd be great if you could link to a source for that. (Not that I don't trust you, but an authoritative source makes the claim stronger.) – Bob – 2014-10-08T23:13:59.747
1also you can't use these abbreviations in
.reg
files, you have to write full name inside the square scopes there – None – 2014-10-09T18:38:02.763@LightnessRacesinOrbit Feel free to produce some evidence proving it wrong. – nobody – 2014-10-10T16:00:21.503