foreach($file in Get-ChildItem -Path . -Filter *.h -recurse)
{
Write-Host "正在处理文件 : $file.FullName"
$fileContent = Get-Content -Path $file.FullName
$fileContent | Out-File -Encoding UTF8 -FilePath $file.FullName
}
知足常乐,顺其自然
foreach($file in Get-ChildItem -Path . -Filter *.h -recurse)
{
Write-Host "正在处理文件 : $file.FullName"
$fileContent = Get-Content -Path $file.FullName
$fileContent | Out-File -Encoding UTF8 -FilePath $file.FullName
}