title: How can a batch file call another batch file?
body: <p>I have two different batch files at two different path. When I call A.bat from B.bat, the batch file that i called(A.bat) doesn't work. When i double click to A.bat it works fine. I think the problem is <strong>the path</strong>. However, I always use full paths. Why it doesn't work?
  All i want is to extract my file. </p>
  
  <p>B.batch</p>
  
  <pre><code>call "C:\Documents and Settings\A.bat"
  </code></pre>
  
  <p>A.batch</p>
  
  <pre><code>SET earfile="E:\bee\deployments\sny1\SnyEarTest.ear"
  SET winrar_exe="C:\.....\winrar.exe"
  SET war_file="C:\...."
  
  %winrar_exe% e -o+ %earfile% %war_file% 
  </code></pre>
  
  <p>When i extract my war_file from the path that A.bat exist then my war_file is extracted into path B. Is there any solution to solve my problem?</p>