如何终止复制操作?
我应该在某些情况下终止对特定文件夹的复制操作。 我的思考过程是使用 FileSystemWatcher 监视该文件夹,一旦创建文件,我就会查找“复制操作”,然后终止它。
我无法找到方法来检测是否有对该文件夹的复制操作,如果有,我该如何杀死它?
我尝试查看任务栏以查看是否有进程 # 然后我可以使用进程 ID 杀死它。但这没有用。还有其他想法吗?
I am supposed to kill a copy operation to a specific folder on some condition.
My thought process is to watch that folder using FileSystemWatcher and as soon as a file is created, I'll look for a "copy operation" and then kill it.
I am unable to find ways to detect if there is a copy operation to that folder and if there is one, how can I kill it?
I tried to look into taskbar to see if there is a process # then I can kill it with process ID. But it did not work. Any other thoughts please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论