【解決方法】CMD またはスクリプト コマンド、またはレジストリ キーから単一のレジストリ エントリをエクスポートする方法を探している


How can i export only a single reg entry from a reg key? I dont need all the subkeys or entries or values to be exported. Just a specific single reg entry. I tried reg export but it exports the whole reg key with whole reg subkeys and other entries as well. Please suggest any command in CMD prompt or C# or powershell or bat file script or any script, which can accomplish this. Please refer to the attached image, where i just want to export "Test" reg entry and not the "Dinesh" or anything else
<a href="https://i.stack.imgur.com/YfsbQ.png"></a>

Expectation: The exported .reg file should just contain this information:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Dinesh]

"Test"="Hello"

Please suggest simple solution to this problem. I have other workarounds in mind to achieve this but those will be lot of work. Looking for simple way (if exists).

私が試したこと:

Tried Reg export, reg save, but they didnt give desired output.

コメント

タイトルとURLをコピーしました