0
我想从bat文件添加注册表项。我有一个reg文件,其中包含从bat文件添加注册表
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel]
"HomePage"=dword:00000001
它适用于双击reg文件。但是,我需要从bat文件中进行相同的注册表编辑。我试过
reg add HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel /v HomePage /t REG_DWORD /d 0 /f
但是没有用。什么是正确的方法来做到这一点? (从bat文件运行.reg文件除外)