Is it possible to modify a registry entry via a .bat/.cmd script?

Brian R. Bondy picture Brian R. Bondy · Sep 24, 2008 · Viewed 178.2k times · Source

Is it possible to modify a registry value (whether string or DWORD) via a .bat/.cmd script?

Answer

nray picture nray · Oct 4, 2008

@Franci Penov - modify is possible in the sense of overwrite with /f, eg

reg add "HKCU\Software\etc\etc" /f /v "value" /t REG_SZ /d "Yes"