Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. param ([int]$c, [string]$p1, [string]$p2)
  2. New-Item -Path $p2 -ItemType 'Directory' -Force
  3. Get-ChildItem -Path $p1 | Where-Object {$_ -match "[$c-9]"} | Foreach-Object {Copy-Item -Path $_.FullName -Destination $p2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement