Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define the path to the save files
- $directory = "C:\Program Files (x86)\Steam\steamapps\common\Northgard\save\conquest"
- # Define the phrases you're looking for
- $phrases = "LandsAfterMorrow", "Invasion", "MedicR", "Cursed"
- # Get all .sav files in the directory
- $files = Get-ChildItem -Path $directory -Filter *.sav
- # Loop through each file and check if it contains all of the phrases
- foreach ($file in $files) {
- $content = Get-Content -Path $file.FullName
- $allPhrasesFound = $true
- foreach ($phrase in $phrases) {
- if (-not ($content -like "*$phrase*")) {
- $allPhrasesFound = $false
- break
- }
- }
- if ($allPhrasesFound) {
- Write-Output $file.Name
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment