如何检测文件复制操作 [英] How to Detect File Copy Operation

查看:94
本文介绍了如何检测文件复制操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问,如何在Windows中使用VB.net检测文件复制操作。

我想构建一个软件来限制基于用户访问或密码方案的复制操作。

我该怎么做...?

解决方案

看看这里:http://stackoverflow.com/questions/1156975/copy-paste-event-listener-in-c-sharp [<一个href =http://stackoverflow.com/questions/1156975/copy-paste-event-listener-in-c-sharptarget =_ blanktitle =New Window> ^ ]

你不能。复制操作与打开用于写访问的文件的应用程序没有什么不同。没有复制文件!资源管理器或Windows公开的事件。



想一想。你如何知道远程机器是否正在将文件复制到您的机器上,或者只是打开机器上的文件并将数据写入其中?没有区别。



所有本地复制操作都是如此。


Pls, how can i detect a file copy operation in Windows using VB.net.
I want to build a software to restrict copy operation based on user Access or a password scheme.
How do i go about this..?

解决方案

Have a look here: http://stackoverflow.com/questions/1156975/copy-paste-event-listener-in-c-sharp[^]


You can't. A copy operation is no different than an application opening a file for write access. There is no "Copying a file!" event exposed by Explorer or Windows for that matter.

Think about it. How would you machine know if a remote machine was copying a file to your machine or just opening a file on your machine and writing data to it?? There is no difference.

The same is true for all local copy operations.


这篇关于如何检测文件复制操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆