Issue when extracting multiple files within different folders at once

Page 2 of 2 FirstFirst 12

  1. Posts : 93
    Windows 10
       #11

    Use regex to remove the ‘part#’ part.

    Code:
    Get-ChildItem 'Z:\YourDir' -Include *.zip, *.rar -Recurse | ForEach-Object {& 'C:\Program Files\WinRAR\WinRAR.exe' x $_.FullName "$($_.DirectoryName)\$($_.BaseName -replace '\.part\d*$')\"; Wait-Process WinRAR}
      My Computer


  2. Posts : 283
    Win 10 Pro x64
    Thread Starter
       #12

    Works, thanks all for your help.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:15.
Find Us




Windows 10 Forums