Skip to content

Instantly share code, notes, and snippets.

@uSlackr
Created July 27, 2022 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uSlackr/ab56f810aca917f06082ca221dae30a3 to your computer and use it in GitHub Desktop.
Save uSlackr/ab56f810aca917f06082ca221dae30a3 to your computer and use it in GitHub Desktop.
7Zip in powershell
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