Guest User

Untitled

a guest
Jun 21st, 2018
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Animals
  2. -Dogs
  3. -Folders With Breeds of Dogs
  4. -<Breed of Dog>_MA_etc.pdf
  5. -Cats
  6. -Folders with Breeds of Cats
  7. -<Breed of Cat>_MA_etc.pdf
  8. -ETC
  9. -etc
  10. -etc
  11.  
  12. $a = Import-CSV C:scriptsHelenClients.csv
  13. $a = @($a.Client)
  14. #$a = $a | %{ $_.SubString(0,6) }
  15.  
  16. $c = Get-ChildItem E:Legal -include ($a) -recurse # | Where-Object {($_ -match $a)}
  17.  
  18.  
  19. ForEach($file in $c){
  20. $dest = Split-Path -path $file.FullName -Parent | Split-path -NoQualifier
  21. #Copy-Item -path $file -recurse -Destination "e:sorted11$dest" -force -Verbose
  22. }
Add Comment
Please, Sign In to add comment