文件传输通知 [英] File Transfer Notify

查看:109
本文介绍了文件传输通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我正在尝试制作一个程序,该程序可以知道何时将文件从诸如闪存盘之类的外部源复制到计算机上,或者从互联网上下载了文件.特别是PDF文件和Word文档.

我有一种感觉,我应该看一下explorer.exe,但是从那里或如何去做才是真正困难的部分.

请指教.

谢谢...:-)

Hi all.

I am trying to make a program that can know when files are being copied to a computer from an external source such as a flash disc or they have been downloaded from the internet. Specifically PDF file and word documents.

I have a feeling i should watch the explorer.exe but from there or how to do it is the really hard part.

Please advice.

Thanks... :-)

推荐答案

您可以看一下John Simmons的文章: FileSystemWatcher-纯混沌(第2部分,共2部分) [
You can have a look at John Simmons articles: FileSystemWatcher - Pure Chaos (Part 1 of 2)[^] and FileSystemWatcher - Pure Chaos (Part 2 of 2)[^]

Best regards
Espen Harlinn


[ ^ ]是用于在C#中监视文件系统的类.它只能在一个目录下工作,因此我不确定它是否适合此任务,但是我所知道的C#中没有其他内容. Shell扩展也许可以做到,但我不确定.我做了google,但没有任何建议可以推荐它,尽管
This[^] is the class you use to watch the file system in C#. It only works on one directory, so I''m not sure how suitable it is to this task, but there''s nothing else in C# that I know of. A shell extension might be able to do it, I am not sure about that. I did google and got no hits to suggest it can, though


谢谢大家.这正是我所需要的
Thanks guys. This is exactly what i needed


这篇关于文件传输通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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