How to unzip a .zip file to a specific directory using jar command in command prompt?
Eg. I have a zip file as stackover.zip. Now I want to extract the files inside the zip file using jar command. The files should be extracted to main1\overflow.
I tried executing jar stackover.zip -C main1\overflow
The
jarutility does not have the provision to specify a target directory.Alternatively, you can
cdinto the folder where you want to extract the files and then execute thejarcommand from there. For example: