Write-Host "Will remove some folders/files. " -NoNewLine $answer = Read-Host -Prompt "Are you sure?" If ($answer.ToLower() -ne "yes") { Exit } Foreach ($fl in (Get-ChildItem -Path *.lng,*.hlf)){ If (($fl.BaseName -ne "FarRus") -and ($fl.BaseName -ne "FarEng")){ Write-Host " removed " -NoNewLine Write-Host $fl.Name -ForegroundColor Yellow Remove-Item -Path $fl -Force } } Foreach ($other in @("Far.exe.example.ini","Addons","PluginSDK","changelog","changelog_eng","File_id.diz")) { If (Test-Path -Path $other) { Write-Host " removed " -NoNewLine Write-Host $other -ForegroundColor Yellow Remove-Item -Path $other -Recurse -Force } } Write-Host "Press 'Enter' to exit..." -NoNewLine Read-Host |