3
My script:
@ECHO OFF
SET RegPath="HKEY_CURRENT_USER\Software\Microsoft\VBA\7.0\"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit" /v LastKey /t REG_SZ /d "%RegPath%" /f
START RegEdit
Despite the inclusion of /f
, I am always prompted to replace the entry. How can I get the REG ADD command to not prompt and just replace the entry?
Try to use
reg import
. – harrymc – 2017-04-11T19:56:35.830