Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI dears

Can I find the file has copied in system?

for example :
An anti-virus check all of the files that has copied to system!

Excuse me for bad english;)

Thanks
Posted
Updated 17-Mar-11 8:02am
v2

Sure you can do that.

Take a look at File System Watcher[^] class.

Create an object and handle "Created" event, it will fire when a file/folder has been created in the specified path.

Look at the quick example at the end of the page.
 
Share this answer
 
In case you mean that you want to scan the entire hard disk you can find lots of sample code on the internet.
This[^] is just one example. To find all files just use a filter of '*.*' where required. Make sure to allow for locked/system files, use try...catch blocks and initially catch all exceptions. Make a note of all the ones that you get and add specific handlers for those as they occur.
 
Share this answer
 

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