Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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... :-)

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
Share this answer
Wendelius 25-Aug-12 10:33am    
Yep those are good articles
Espen Harlinn 25-Aug-12 16:53pm    
Thank you, Mika :-D
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
Share this answer
Thanks guys. This is exactly what i needed
Share this answer
BillW33 10-Sep-12 13:50pm    
You should not post a comment to a solution or an addition to your question as a "Solution". Either add a comment to a previous solution by pressing the "Have a Question or Comment?" button or update your question by using the "Improve question" button. I did not vote, but I thought you should know why this is being downvoted.
Wamuti 10-Sep-12 15:07pm    
Thanks... I did not know that. I appreciate :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900