I wanted to extract one of my jars to specified directory using jar command line utility.
jar
If I understand this right -C option should to the tr
-C
This is what I ended up using inside my .bat file. Windows only of course.
set CURRENT_DIR=%cd% mkdir ./directoryToExtractTo cd ./directoryToExtractTo jar xvf %CURRENT_DIR%\myJar.jar cd %CURRENT_DIR%