我正在尝试在cmd(bat文件)中运行此reg代码,但我无法使其工作.我哪里做错了?
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel]
"HomePage"=dword:00000001
Run Code Online (Sandbox Code Playgroud)
如果我将它作为一个reg文件并双击,它就可以工作.
Bat文件代码(这不起作用,没有错误):
@echo off
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel" /V HomePage /T REG_DWORD /F /D 1
Run Code Online (Sandbox Code Playgroud)