You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
345 B
10 lines
345 B
|
3 weeks ago
|
$bad = 0
|
||
|
|
Get-ChildItem -Path 'e:\code\crm-backend-matt\crm-lead\src' -Recurse -Filter *.java | ForEach-Object {
|
||
|
|
$b = [IO.File]::ReadAllBytes($_.FullName)
|
||
|
|
if ($b.Length -ge 3 -and $b[0] -eq 0xEF -and $b[1] -eq 0xBB -and $b[2] -eq 0xBF) {
|
||
|
|
Write-Host ('BOM: ' + $_.FullName)
|
||
|
|
$bad++
|
||
|
|
}
|
||
|
|
}
|
||
|
|
Write-Host ('BOM files: ' + $bad)
|