标签: powershell
我试图让PowerShell继续读取文件的行,特别是尾部,它会为每一行调用一个函数。
foreach ($log in Get-Content pathtofilehere -Tail 0 -Wait) { ... }
但这种方法似乎不起作用,想知道是否有人有任何建议?