いわゆる UnixやLinuxなどでtail -f コマンドに該当することをWindows Powershellで実現させます。
Get-Content -Path “C:\tmp\MyApplicationLog.txt” -Wait -Last 10 -Encoding “UTF8”
-Encoding には適切な文字コードを指定
文字コード表
![](https://lil.la/wp-content/uploads/cocoon-resources/blog-card-cache/62becbf9e66edbd7a674a2191e28faef.png)
Code Page Identifiers - Win32 apps
The following table defines the available code page identifiers.
コメント