mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
12 lines
325 B
PowerShell
12 lines
325 B
PowerShell
param (
|
|
[Parameter(Mandatory)][string]$Path,
|
|
[Parameter(Mandatory)][string]$Match
|
|
)
|
|
|
|
echo "Removing projects that match $($Match) from $($Path)"
|
|
|
|
Get-Content $Path -Delimiter 'EndProject' |
|
|
Where-Object {$_ -notlike $Match} |
|
|
Set-Content "$($Path).new"
|
|
|
|
Move-Item -Path "$($Path).new" -Destination $Path -Force |