title: running a java command within a batch file from visual studio project keeps erroring?
body: <p>Basically I have a project which I have started (first time using visual studio).</p>
  
  <p>My program requires me to be able to run a batch file eg, apktool if framework-res.apk</p>
  
  <p>When I run the batch there is a java command within the batch file but the cmd console outputs this</p>
  
  <pre><code>'java' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>Now if I open cmd console and run the apk tool it works.</p>
  
  <p>Here is the contents of my <em>apktool.bat</em>:</p>
  
  <pre><code>*@echo off
  
  set PATH=%CD%;%PATH%;
  
  java -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9*
  </code></pre>
  
  <p>and here is my code from visual studio:</p>
  
  <pre><code>*Private Sub Android50LPreviewToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles Android50LPreviewToolStripMenuItem.Click
      **Shell("cmd /K c:\Zeustools\frameworks\apktool if framework-res_apiL.apk ")**
  End Sub
  End Class*
  </code></pre>
  
  <p>Can anyone help me understand where I have gone wrong?</p>