更新日:2020/02/04
PS> get-content c:\temp\test.txt -wait -tail 5
PS> get-content c:\temp\test.txt -wait -tail 5 -Encoding UTF-8
Unknown, String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, UTF32, Ascii, Default, Oem, BigEndianUTF32
get-content c:\temp\test.txt -wait -tail 120
get-content : 別のプロセスで使用されているため、プロセスはファイル 'C:\temp\test.txt' にアクセスできません。
発生場所 行:1 文字:1
+ get-content c:\temp\test.txt -wait -tail 120
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\temp\test.txt:String) [Get-Content], IOException
+ FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand
[Powershell FAQ トップへ]
[FAQ CENTER トップ]