Profil Werte anzeigen Volk / Stamm / Geschlecht
Miqo'te Goldtatze / ♀
Namenstag
30. Sonne im 5. Schattenmond
Schutzgott
Azeyma - Die Aufseherin
Staatliche Gesellschaft
Legion der Unsterblichen / Legionärin 3. Klasse
ATTRIBUTEStärke 380 Geschick 381 Konstitution 378 Intelligenz 377 Willenskraft 440
ANGRIFFKritische Treffer 412 Entschlossenheit 420 Direkter Treffer 412
ABWEHRVerteidigung 748 Magieabwehr 1488
PHYSISCHE ATTRIBUTEStärke der Attacke 380 Schnelligkeit 412
SYNTHESEKunstfertigkeit 1841 Kontrolle 1701
Stufe 96
Vorstellung 検索文字列入力 $k = Read-Host "検索文字列を入力" 検索対象フォルダ $base = "C:\CSV" 出力ファイル $out = Join-Path $PSScriptRoot "result.csv" $err = Join-Path $PSScriptRoot "error.csv" 初期化 if (Test-Path $out) { Remove-Item $out } if (Test-Path $err) { Remove-Item $err } CSVファイル取得 $files = Get-ChildItem $base -Recurse -File -Filter *.csv -ErrorAction SilentlyContinue foreach ($f in $files) { $n = 0 try { Get-Content $f.FullName -ReadCount 1000 -ErrorAction Stop | ForEach-Object { foreach ($line in $) { $n++ if ($line -like "$k") { '"{0}",{1},"{2}"' -f $f.Name, $n, ($line -replace '"','""') } } } } catch { # エラー内容付きで別ファイルへ出力 '"{0}","{1}"' -f $f.FullName, ($.Exception.Message -replace '"','""') | Add-Content $err } } | Set-Content $out Write-Host "完了:" Write-Host "結果: $out" Write-Host "エラー: $err" @echo off powershell -NoProfile -ExecutionPolicy Bypass -File search.ps1 pause Range("A1:A10").Copy Range("B1").PasteSpecial xlPasteValues Application.CutCopyMode = False