title: Running jar with dropped file on bat
body: <p>I want to drag and drop a file on a .bat file. After I dropped it I want to run a jar file with the dropped file path as input. How can I accomplish to run the jar file with a relative path? The dir my .bat file is run is my user dir and not the dir where it is located.</p>
  
  <pre><code>goal: cmd /c java -jar myjar.jar -f %1
  current: cmd /c java -jar c:\somewhere\myjar.jar -f %1
  </code></pre>
  
  <p>The point is, that the program(jar +bat) is part of a small automated deploy process and for every user there might be a different path to run the jar.</p>