Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7993501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:51:58+00:00 2026-06-04T13:51:58+00:00

I am working on a application and need to extract the gz files inside

  • 0

I am working on a application and need to extract the gz files inside a folder.

what I need is a c# script that can loop all gz files in a given folder and extract them into the same folder.

I know there are some libraries for this, But I could not able to get them work for gz, I got them working for zip though.

Or if there are any other solution for the same i.e if batch script can be created that can use WinRar command line utility to achieve the same. I don’t know just an Idea if possible.

Note: I think I have to drop that second option- WinRar command is able to handle only RAR files.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:51:59+00:00Added an answer on June 4, 2026 at 1:51 pm

    I got it solved. Thanks MichelZ for showing the way to go. I got the 7-zip command line version to done the trick for me.

    @REM ------- BEGIN demo.cmd ----------------
    @setlocal
    @echo off
    set path="C:\Program Files\7-Zip\";%path%
    for /F %%i in ('dir /s/b *.gz') do call :do_extract "%%i"
    for /F %%i in ('dir /s/b *.zip') do call :do_extract "%%i"
    goto :eof
    
    :do_extract
    pushd %~dp1
    7z e %1 -y
    popd
    REM ------- END demo.cmd ------------------
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an encryption application that for now encrypts text-only files. I need
I am working on a application where i need to draw and save that
I am currently working in an application where I need to find all occurrences
I am working on an application where I need to fetch all the videos
Need to install a font on all user's machines that will use the application
I'm working in a application where I need to verified that request comes from
I'm working on desktop application (Extract Transform Load type of app) that requires uploading
I am working on a Python/django web application and I need to extract text
I'm working on an application where I need to be able to send a
I am working on an application where I need to integrate the search engine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.