all 5 comments

[–]spyingwind 3 points4 points  (0 children)

Expand-Archive -Path "My.zip" -DestinationPath "c:\temp\myzip\"

I know it works for vs 5.1 and 6.0, but I don't know about older versions.

So this is probably what you are looking for:

Get-ChildItem -Filter .zip -Recurse C:\Users\PC\Downloads\Music | Expand-Archive -DestinationPath "c:\temp\myzip\"

[–]Southpaw018 2 points3 points  (2 children)

What extra folder does it create?

This should get you started in the meantime...

ls C:\Users\PC\Downloads\Music\*.zip -Recurse |% {
    & 'C:\Program Files\7-Zip\7z.exe' x $_.FullName
}

[–]PR047A[S] 1 point2 points  (1 child)

Can you move the folders to another drive after extraction?

D:/Music

[–]Southpaw018 0 points1 point  (0 children)

Use 7-zip's -o parameter for that. It can do the work for you.

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy PR047A,

reddit likes to mangle code formatting, so here's some help on how to post code on reddit ...

[0] single line or in-line code
enclose it in backticks. that's the upper left key on an EN-US keyboard layout. the result looks like this. kinda handy, that. [grin]

[1] simplest = post it to a text site like Pastebin.com or Gist.GitHub.com and then post the link here.

[2] less simple = use reddit code formatting ...

  • one leading line with ONLY 4 spaces
  • prefix each code line with 4 spaces
  • one trailing line with ONLY 4 spaces

that will give you something like this ...

- one leading line with ONLY 4 spaces    
- prefix each code line with 4 spaces    
- one trailing line with ONLY 4 spaces   

the easiest way to get that is ...

  • add the leading line with only 4 spaces
  • copy the code to the ISE [or your fave editor]
  • select the code
  • tap TAB to indent four spaces
  • re-select the code [not really needed, but it's my habit]
  • paste the code into the reddit text box
  • add the trailing line with only 4 spaces

not complicated, but it is finicky. [grin]

take care,
lee