mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-31 12:08:41 -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 |