2020/08/24

PowerShell


JavadocをURLデコード


Add-Type -AssemblyName System.Web

$files = Get-ChildItem -Recurse "C:\Javadoc" -filter *.html

foreach($file in $files.FullName)
{
  $content = Get-Content -Encoding UTF8 -Path $file
  [System.Web.HttpUtility]::UrlDecode($content) | Set-Content -Encoding UTF8 -Path $file
}


0 件のコメント:

コメントを投稿

人気の投稿