Mail Archives: djgpp/2001/08/27/12:45:12
On Mon, 27 Aug 2001, A. Sinan Unur wrote:
> I guess I wasn't clear. I am not interested in plugging into the Windows
> file operations chain. Rather, I am curious about if I can create similar
> functionality by chaining into DOS interrupts even when not running under
> Windows.
DOS doesn't have this functionality at all, AFAIK. On Windows, you need
cooperation from Windows to be able to do that.
> I think it is easier to go with the Windows solution and use
> cygwin for this task.
Since Cywgin produces native Win32 apps, you can use it to register a
callback that will notify you about any change in the filesystem.
> I have a bunch of programs running on different machines generating data
> on a network drive. I wanted a program on a "monitor" computer to watch
> these data files, and process them when they were done.
If those other programs only create the files, you could simply read the
directory from time to time (with readdir, for example).
- Raw text -