Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I have a situation where an application will save an image file in a specific directory. I need to find out whether or not the image file is saved completely. The application can not be modified to fire an event or pass a message to my application. I need to observe the directory and find out whether the image is copied fully or not.

Quick response is appreciated.
Thanks in advance. :)
Posted

You want to look into using the FileSystemWatcher object. There are a lot of articles here on CodeProject about it.
 
Share this answer
 
v2
If a file is saved completely,
it can be opened (by your app) in write-mode... :-D
 
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