Variables in Registry Keys?

  • Thread starter Thread starter Keith
  • Start date Start date
In said:
Can I use the %username% system variable in a registry key in a
.reg file?

Yes but the valuename "type" must be REG_EXPAND_SZ (Expand String) in
order for the system to, well, expand the value of the named
environment variable. Otherwise it will just look like a literal "%
username%" string as in type REG_SZ.
 
In said:
Can I use the %username% system variable in a registry key in a
.reg file?

Yes but the valuename "type" must be REG_EXPAND_SZ (Expand String) in
order for the system to, well, expand the value of the named
environment variable. Otherwise it will just look like a literal "%
username%" string as in type REG_SZ.
 
Thank you

Mark V said:
Yes but the valuename "type" must be REG_EXPAND_SZ (Expand String) in
order for the system to, well, expand the value of the named
environment variable. Otherwise it will just look like a literal "%
username%" string as in type REG_SZ.
 
Thank you

Mark V said:
Yes but the valuename "type" must be REG_EXPAND_SZ (Expand String) in
order for the system to, well, expand the value of the named
environment variable. Otherwise it will just look like a literal "%
username%" string as in type REG_SZ.
 
Back
Top