title: How can I refresh the PATH environment variable in a Batch script
body: <p>I have a batch file "file.bat" that will call an installer with the following command:</p>
  
  <pre><code>msiexec.exe /i "%~dp0\installer.msi"
  </code></pre>
  
  <p>The installer will install a program and update the Path variable.
  While this works fine, the problem is when I try to start the program it's not found because apparently the PATH variable was not updated. 
  I tried restarting the batch file from within itself with:</p>
  
  <pre><code>start cmd /c file.bat 
  </code></pre>
  
  <p>but it didn't work. 
  Is there a way to refresh the PATH variable or maybe restart the batch file in a new process so that it detects the new environment?</p>
  
  <p>PS: restarting the batch file manually works of course but it's not what I want.</p>
  
  <p>Thanks.</p>