Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Browse other questions tagged .