My app is creating a word document which my app calls saveas() and saves it
to a given directory that is being watched by a fileSystemWatcher. The
problem is that the fileSystemEventHandler for creation is only called for
the temporary filed created by word which shows up as ~$documentName.doc the
real file named MyDocument.doc will never invoke the fileSystemEventHandler
for creation. Now when the user closes Word the temporary file is deleted
and my app only had a handle to that file.
How come I am not getting any notification about the creation of the real
file even though it was saved using saveas() and I do see it created in
windows explorer?

Re: FileSystemWatcher getting Word temp file by Robin

Robin
Tue Oct 19 09:09:16 CDT 2004

Are you sure its actually being saved? If it doesn't show up in explorer,
my guess is that it isnt :)


"zfeld" <zfeld100@hotmail.com> wrote in message
news:%23bGSGpTtEHA.2300@TK2MSFTNGP09.phx.gbl...
>
>
> My app is creating a word document which my app calls saveas() and saves
> it
> to a given directory that is being watched by a fileSystemWatcher. The
> problem is that the fileSystemEventHandler for creation is only called for
> the temporary filed created by word which shows up as ~$documentName.doc
> the
> real file named MyDocument.doc will never invoke the
> fileSystemEventHandler
> for creation. Now when the user closes Word the temporary file is deleted
> and my app only had a handle to that file.
> How come I am not getting any notification about the creation of the real
> file even though it was saved using saveas() and I do see it created in
> windows explorer?
>
>
>