K
Keith
Can I use the %username% system variable in a registry key in a .reg file?
Thanks
Thanks
In said:Can I use the %username% system variable in a registry key in a
.reg file?
In said:Can I use the %username% system variable in a registry key in a
.reg file?
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.
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.