SHOW:
|
|
- or go back to the newest paste.
1 | - | param ([int]$c, [string]$p1, [string]$p2) |
1 | + | param ([int]$c, [string]$p1) |
2 | $p2 = Join-Path $p1 -ChildPath "Greater" | |
3 | New-Item -Path $p2 -ItemType 'Directory' -Force | |
4 | Get-ChildItem -Path $p1 | Where-Object {$_ -match "[$c-9]"} | Foreach-Object {Move-Item -Path $_.FullName -Destination $p2} |