I would like to unzip Filename.tar.gz to Filename using single command in windows batch script All the files inside zip should go inside the Filename Folder I am trying to do in windows . I am not getting correct output. Can anyone suggest an idea

2

4 Answers

Windows Command line now supports tar from Windows 10 insider build 17063. You may try run the below command in cmd or PowerShell to see if it works:

tar xzvf your-file-name.tar.gz 
1

7 zip can do that:

It has a documented command line. I use it every day via scripts.

Plus: it is free and has 32 and 64 bit versions.

1

Windows 10 command line supports tar command

Write the tar command as general to the Linux terminal.

tar -zxvf tar-filename.tar.gz --directory destination-folder

Another option is the Arc program:

arc unarchive test.tar.gz 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy