ไฟล์ 0-byte ไม่มีข้อมูล แต่อาจมาจาก Download ที่ขาดหาย, Installation ค้าง, หรือ Error ระบบ
วิธีลบ Empty Files
1. PowerShell (เร็วที่สุด)
ลิสต์ไฟล์ว่างใน D:\FolderName:
Get-ChildItem -Path "D:\FolderName" -Recurse -Force | Where-Object { $_.PSIsContainer -eq $false -and $_.Length -eq 0 } | Select -ExpandProperty FullName | Set-Content -Path D:\EmptyFiles.txt
ลบไฟล์ว่างทั้งหมด:
Get-ChildItem -Path "D:\FolderName" -Recurse -Force | Where-Object { $_.PSIsContainer -eq $false -and $_.Length -eq 0 } | Remove-Item
2. Freeware: Find Empty Files and Folders
ดาวน์โหลด → Scan Drive → แสดงรายการไฟล์/โฟลเดอร์ว่าง → เลือก Delete
⚠ คำเตือน: บางไฟล์ 0-byte ถูกใช้โดยระบบ/โปรแกรม (Mail, Installer) การลบทั้งหมดอาจทำให้ Error → สำรองก่อนลบ