812500 wrote:Change directory ^[url http://www.computerhope.com/chdirhlp.htm]Windows command line - change directory^ to C:/def/ and run the jar tool ^[url http://download.oracle.com/javase/6/docs/technotes/tools/windows/jar.html]java 6 tools - the jar tool^ to extract all files from C:/abc/MyJar.jar.
I want to unzip a jar file and to keep it to some other location.
say I am at C:/ and my jar file is at C:/abc/myJar.jar and I want to keep the unjared version at C:/def/.
Then what should I do for this.
I am using dosNo you are not, Java is not supported on DOS, you are probably using Windows.
and am at C:/ directory.Not relevant.
812500 wrote:Just use pushd ^[url http://www.computerhope.com/pushd.htm]Windows command line - pushd^ and popd ^[url http://www.computerhope.com/popd.htm]Windows command line - popd^
Actually I want to write a batch file in which I want to make the paths to be generic, and declaring the variables at the top.
so for this purpose only, I was not willing to go to a particular path, but instead was willing to use a command to unjar that and directly storing them at the desired location.