【发布时间】:2020-03-08 01:56:48
【问题描述】:
我正在基于此链接测试文件/文件夹事件观察器
https://www.mobzystems.com/code/using-a-filesystemwatcher-from-powershell/
一切正常,但是当powershell关闭时,watcher也会被销毁,这是个问题,因为我想一直有一个watcher watch文件夹。
有什么方法可以实现吗?
非常感谢
【问题讨论】:
标签: powershell powershell-2.0 powershell-3.0