How do I export HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe with regedit from cmd.exe?
Posted
by
René Nyffenegger
on Super User
See other posts from Super User
or by René Nyffenegger
Published on 2012-10-13T07:18:38Z
Indexed on
2012/10/13
9:41 UTC
Read the original article
Hit count: 422
I am trying to export the registry key HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
but am unable to do so, probably because of the percent signs.
I tried to escape the %-sign with a caret or another %-sign, but this didn't help me:
regedit /e c:\temp\cmd.reg "HKEY_CURRENT_USER\Console\%%SystemRoot%%_system32_cmd.exe"
and
regedit /e c:\temp\cmd.reg "HKEY_CURRENT_USER\Console\^%SystemRoot^%_system32_cmd.exe"
So, is there a way to do what I want.
Edit as per ??????? ???????????'s comment: the key is the exact string, with the percent signs. So I don't want %SystemRoot%
expanded, but passed to regedit as is.
© Super User or respective owner