FileWatcher Windows Service

  • Thread starter Thread starter Troy Murphy
  • Start date Start date
T

Troy Murphy

The help file for Visual Studio .NET version 1 had a Walkthru for installing
a Windows Service that would monitor a folder.
Version 1.1 does not seem to have that example anymore.

Could someone please send or redirect me to an example of doing this?

Thanks,
Troy
 
Hi Troy,

I posted yesterday a code sniped just for doing so, take a look at it.
Humm. I even think that it was you who asked in the first place, if so, did
you tried it? It's working on my project just fine.

Cheers,
 
It was me!
I appreciate your example, but I am still having problems however. The
problems I am having are not addressed in the code sample you gave and I
seem to remember the original walkthru having the solution.

For example, the folder I am monitoring is an FTP folder and the created
event seems to be firing as soon as the file is beginning to be written
before the entire file is present.

The other problem I am having is the event is calling a DLL (VFP DLL) that
has dependencies to such things as a DynaZip (zip file extractor) and a 3rd
parth Crypto Library that will decrypt the file. The DLL runs fine from a
windows form, but the Windows Service logs the error that it cannog launch
the dependence DLL.

Troy
 
Back
Top