title: File Not Found in batch script
body: <p>I have written a script for removing drive letter of System drive windows </p>
  
  <pre><code>cd /d C:\
  powershell.exe Set-ExecutionPolicy Bypass -Force
  
  @echo off
  for /f "tokens=2" %%a in ('echo list volume ^| diskpart ^| findstr System') do (
      (
          echo select volume %%a
          REM echo remove
      ) | diskpart
  )
  </code></pre>
  
  <p>Above is my script but something is wrong with it it works fine but shows <code>File Not Found</code> error output is below and exited i want to write some commands after this code in same script but it dont work
  C:>script.bat</p>
  
  <pre><code>C:\&gt;cd /d C:\
  
  C:\&gt;powershell.exe Set-ExecutionPolicy Bypass -Force
  File Not Found
  
  C:\&gt;
  </code></pre>