How to check if there is a new file in a folder?
- From: "Lakesider" <rudolf.ball@xxxxxxxxxx>
- Date: 3 Nov 2005 05:58:27 -0800
Dear NG,
I want to check if there is a new file in a specific folder. If I copy
a big file into the folder (while the programm is running), I already
can access it. There is the problem: how can I check if a file is
already copied or not!? How do I know if a file is "ready" for use?
I open the CheckMyFolder function once a second:
public void CheckMyFolder()
....
files = directory.GetFiles();
foreach (FileInfo f in files)
{
// read the whole thing, do something
}
....
}
Thank you very much for your help
Rudi
.
- Follow-Ups:
- Re: How to check if there is a new file in a folder?
- From: Michael Nemtsev
- Re: How to check if there is a new file in a folder?
- From: Kevin Spencer
- Re: How to check if there is a new file in a folder?
- Prev by Date: Re: Single instance of app
- Next by Date: Re: Updating a control in design time
- Previous by thread: Q: Updating a control in design time
- Next by thread: Re: How to check if there is a new file in a folder?
- Index(es):
Relevant Pages
|