Unzip a file in windows command line




















Asked 12 years, 7 months ago. Active 1 year, 2 months ago. Viewed k times. Chris Sainty 6, 33 33 silver badges 55 55 bronze badges. Th3Fix3r Th3Fix3r. A quick Google search turned up this. Unless you're running a really old version of windows ME or earlier , the windows command line is not DOS. The easyest way to unzip a file is using unzip.

Example: unzip. URL: stahlworks. Honour where honour is due. Show 3 more comments. Active Oldest Votes. If you already have Java Development Kit on your PC and the bin directory is in your path in most cases , you can use the command line: jar xf test.

Examples: Extract jar file jar x[v]f jarfile [inputfiles] [-Joption] jar x[v] [inputfiles] [-Joption]. Rohan Bari 6, 3 3 gold badges 11 11 silver badges 31 31 bronze badges. Brian Brian A hint. FileNotFoundException: test. Add a comment. Red33mer Red33mer 3 3 gold badges 15 15 silver badges 22 22 bronze badges. The first URL listed is a true bit application, thus does not work on x64 operating systems. Just a heads up. Show 1 more comment.

Peter Gluck 8, 1 1 gold badge 36 36 silver badges 35 35 bronze badges. Arguments If Wscript. GetAbsolutePathName ". NameSpace strZipFile. Echo "Extracted. Ross Patterson 9, 32 32 silver badges 47 47 bronze badges. Justin Godden Justin Godden 5 5 silver badges 3 3 bronze badges. It's generally considered good to put code into your answer, and generally bad to link out for code — just a heads up! As other have alluded, 7-zip is great.

Note: I am going to zip and then unzip a file. Unzip is at the bottom. You can put the following into a. Usually what you want with zip functionality. That's the name of the output zip file. There are others. But the above will get you running. EDIT just extra stuff. Sebastian 5, 5 5 gold badges 31 31 silver badges 46 46 bronze badges. This is working as expected, now I can zip any folder and make exe using iexpress and unzip using this. Does this work in windows 10 too. There is an article on getting to the built-in Windows.

Chen Tasker Chen Tasker 1 1 gold badge 4 4 silver badges 4 4 bronze badges. Does this answer your question? Add a comment. Active Oldest Votes. This batch file code will help you to unzip a file. Improve this answer. Rajesh Sinha Rajesh Sinha 8, 6 6 gold badges 12 12 silver badges 31 31 bronze badges. It does work well with. Because it ignores the incorrect -z argument and always uses autodetection. Thanks, I removed it. I thought that with -z is to call the gzip submodule, which in turn does the autodetect.

It works perfectly for me on Windows Show 3 more comments. What about older windows version? You just need Powershell v5. I have two problems with this. There is no powershell in some nano containers for example. Not a valuable answer FolderExists ExtractTo Then fso. NameSpace ZipFile. NameSpace ExtractTo. Aaron Hudon Aaron Hudon 99 2 2 bronze badges. Question clearly states cmd and you gave a powershell command — Ari. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back



0コメント

  • 1000 / 1000