Guest User

Untitled

a guest
Aug 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. How to retrieve a recursive directory and file list from powershell excluding some files and folders?
  2. Get-ChildItem -Recurse .targetdir -Exclude *.log |
  3. Where-Object { $_.FullName -notmatch '\excludedir($|\)' }
  4.  
  5. Get-ChildItem -Recurse .targetdir -Exclude *.log |
  6. Where-Object { $_.FullName -notmatch '\excludedir($|\)' }
Add Comment
Please, Sign In to add comment