title: First line of batch file fails - is not recognized as an internal or external command, operable program or batch file
body: <p>on Windows 7 in VS2012, I have setup an External Tool to call a bat file (let’s call it BatA.bat). In the external tool, I am passing in $(ItemDir) as the one and only Argument and I have the Initial Directory to $(ItemDir) as well. </p>
  
  <p>Within BatA.bat, a call is made to run BatB.bat like this:</p>
  
  <pre><code>call "%1BatB.bat"
  </code></pre>
  
  <p>This command calling BatB.bat results in the following in the output window:</p>
  
  <p><strong>'ï»¿rem' is not recognized as an internal or external command,
  operable program or batch file.</strong></p>
  
  <p><strong>hello</strong></p>
  
  <p>BatB.bat has the following code:</p>
  
  <pre><code>rem ***Bat B***
  @echo off
  echo.
  echo hello
  </code></pre>
  
  <p>The odd thing is that in spite of the error message, BatB.bat does run and executes perfectly! </p>
  
  <p>I just can’t figure out why I’m getting the error message on the call to BatB.bat in the first place...</p>
  
  <p>BatA.bat and BatB.bat are both in the same directory. I’ve tried hard coding the path in the call to BatB.bat as well as doing a cd to the bat directory before calling BatB.bat but I still receive the same error.</p>