Files
HF-MES-manual/compare_images.ps1

16 lines
656 B
PowerShell
Raw Normal View History

2026-05-22 18:28:18 +08:00
$imagePath = 'd:\companyProject\HF-MES-manual\HF-MES-manual\public\image'
$imageEnPath = 'd:\companyProject\HF-MES-manual\HF-MES-manual\public\image_en'
$result = @()
Get-ChildItem -Path $imagePath -Recurse -File | ForEach-Object {
$relativePath = $_.FullName.Substring($imagePath.Length + 1)
$enPath = Join-Path $imageEnPath $relativePath
if (-not (Test-Path $enPath)) {
$result += [PSCustomObject]@{
Path = $_.FullName
}
}
}
$result | Export-Csv -Path 'd:\companyProject\HF-MES-manual\HF-MES-manual\missing_images.csv' -Encoding UTF8 -NoTypeInformation
Write-Host "Done! Found $($result.Count) missing files"