Created
July 27, 2022 01:02
-
-
Save uSlackr/ab56f810aca917f06082ca221dae30a3 to your computer and use it in GitHub Desktop.
7Zip in powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install-module 7zip4powershell | |
# Extract all rar files in a tree\path | |
# All files wind up in output path | |
cd "top-level\folder" | |
gci -Directory -recurse | foreach {gci "$_\*.rar" | foreach {Expand-7Zip $_ -targetpath t:\some-output\path }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment