Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I append data to a Windows registry value in a batch file?

reg.exe seems to only support create/delete keys and values - I want to take an existing REG_MULTI_SZ value and append some more data to it.

share|improve this question
Read the registry value into a variable (using "REG QUERY ...")and then modify the variable (append)... and then write it back to the registry. – Logman Jul 23 '12 at 16:59
Can you give an example? I don't know how to parse the output in a batch file – snowcrash09 Jul 24 '12 at 13:14
it would be easier if I knew what reg value you are attempting to modify, and what you are it hardcoded? are you passing a variable? Otherwise I could paste example code for each individual task but it would still have to be changed (bat code). – Logman Jul 24 '12 at 16:06
Can you use PowerShell instead? If so I could provide some sample code. – Chris N Aug 1 '12 at 2:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.