title: Run reg command in cmd (bat file)?
body: <p>I'm trying to run this reg code in cmd (bat file), but I couldn't make it work. Where am I doing wrong?</p>
  
  <pre><code>[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel]
  "HomePage"=dword:00000001
  </code></pre>
  
  <p>It works if I make it a reg file and double click.</p>
  
  <p>Bat file code (this doesn't work, no errors):</p>
  
  <pre><code>@echo off
  reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel" /V HomePage /T REG_DWORD /F /D 1
  </code></pre>