Skip to content

Instantly share code, notes, and snippets.

@nmanzi
Created October 14, 2012 09:21
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 nmanzi/3888096 to your computer and use it in GitHub Desktop.
Save nmanzi/3888096 to your computer and use it in GitHub Desktop.
Extract all RAR files under the current directory (requires unrar.exe in %PATH%)
Get-ChildItem | ?{ $_.PSIsContainer } | ForEach-Object {Get-ChildItem $_ *.rar | select-object -first 1 | foreach-object {unrar x $_.FullName}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment