https://github.com/zhutra/7zextractor
A command-line utility to selectively extract folders from archives and compressed files
https://github.com/zhutra/7zextractor
7z 7zip c csharp
Last synced: 11 months ago
JSON representation
A command-line utility to selectively extract folders from archives and compressed files
- Host: GitHub
- URL: https://github.com/zhutra/7zextractor
- Owner: zhutra
- License: other
- Created: 2025-02-20T00:46:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-20T01:10:03.000Z (11 months ago)
- Last Synced: 2025-02-20T01:36:31.820Z (11 months ago)
- Topics: 7z, 7zip, c, csharp
- Language: C#
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 7zExtractor
📂 A simple command-line utility that selectively extracts specific folders from archive files supported by 7-Zip. If multiple directories are present in a file, this tool attempts to assign a _root_ directory to one of the possible folder matches specified.
## Usage
```
7zExtract.exe --to [--re "new_name"] [--from "folder1" or "folder2" or ...]
```
```
Required. Path to file
--to Required. If it doesn't exist, it will be created
--re "new_name" Optional. Rename the extracted folder with
--from "..." or ... Optional. Match a folder to extract from
```
## Building
```
dotnet build -c Release
```
Requirements:
- [.NET Core SDK 6.0](https://dotnet.microsoft.com/download/dotnet-core/6.0)
- [7z.dll](https://sourceforge.net/p/sevenzip/discussion/45798/thread/f4e969b197/#fb92) - add to project's directory
## License
The license for this project is available at [7-zip.org/license.txt](https://7-zip.org/license.txt).
## Credits
This program makes use of the **7-Zip** library for archive extraction. Thank you to Igor Pavlov from the [7-Zip](https://sourceforge.net/projects/sevenzip/) project, as well as Alexander Selishchev from the [SevenZipExtractor](https://github.com/adoconnection/SevenZipExtractor) repository.