473,387 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

FileWatcher Windows Service

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
Nov 15 '05 #1
6 12227
http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #3
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
Thanks, but where is the example that does this from a Windows Serve - from code to deployment.

The link here is simply a sample for the filewatcher itself. The problem I am having is trying to get this to work as a Windows Service.
I have no problem using the watcher in a console or windows form
application. I am having trouble getting a Windows Service with the
FileWatcher event to perform at all. I usually get security errors or
nothing happens. I need a detailed walkthru that I know I followed during
the early beta, but can no longer find.

Troy

"Hasani" <HJ****@hotmail.c0m> wrote in message
news:xp*******************@twister.nyc.rr.com...

http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
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



Nov 15 '05 #4
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
Thanks, but where is the example that does this from a Windows Serve - from code to deployment.

The link here is simply a sample for the filewatcher itself. The problem I am having is trying to get this to work as a Windows Service.
I have no problem using the watcher in a console or windows form
application. I am having trouble getting a Windows Service with the
FileWatcher event to perform at all. I usually get security errors or
nothing happens. I need a detailed walkthru that I know I followed during
the early beta, but can no longer find.

Troy

"Hasani" <HJ****@hotmail.c0m> wrote in message
news:xp*******************@twister.nyc.rr.com...

http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
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



Nov 15 '05 #5
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

"Ignacio Machin" <ignacio.machin AT dot.state.fl.us> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
Thanks, but where is the example that does this from a Windows Serve - from
code to deployment.

The link here is simply a sample for the filewatcher itself. The problem I
am having is trying to get this to work as a Windows Service.
I have no problem using the watcher in a console or windows form
application. I am having trouble getting a Windows Service with the
FileWatcher event to perform at all. I usually get security errors or
nothing happens. I need a detailed walkthru that I know I followed during the early beta, but can no longer find.

Troy

"Hasani" <HJ****@hotmail.c0m> wrote in message
news:xp*******************@twister.nyc.rr.com...

http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
> 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
>
>



Nov 15 '05 #6
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

"Ignacio Machin" <ignacio.machin AT dot.state.fl.us> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
Thanks, but where is the example that does this from a Windows Serve - from
code to deployment.

The link here is simply a sample for the filewatcher itself. The problem I
am having is trying to get this to work as a Windows Service.
I have no problem using the watcher in a console or windows form
application. I am having trouble getting a Windows Service with the
FileWatcher event to perform at all. I usually get security errors or
nothing happens. I need a detailed walkthru that I know I followed during the early beta, but can no longer find.

Troy

"Hasani" <HJ****@hotmail.c0m> wrote in message
news:xp*******************@twister.nyc.rr.com...

http://samples.gotdotnet.com/quickst...2fwatcher.aspx

"Troy Murphy" <tr**@solutionsoft.cc> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
> 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
>
>



Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ron King Jr | last post by:
I have a small problem with my windows service. The first time I start the service everything works the way it's suppose to, but randomly the service fails. The jist of the service is to use the...
1
by: PeterNZ | last post by:
Hi all, I developped an C# app which is using FileSystemWatcher. If a file is created in a specific folder, it opens the file and does some processing. This functionality works without...
0
by: Troy Murphy | last post by:
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...
1
by: Aaron | last post by:
I tried this with and without a timer, I got farther with a timer. THis code works just fine in a form but only gets as far as activating StartWatcher in the Win Service. protected override...
0
by: Jason | last post by:
I created a FileWatcher service to watch a folder. When a new file is created in the folder, I want to start a process. Everything works fine if I cut-and-paste a test file from my hard-drive; as...
2
by: Roger Twomey | last post by:
I am working on a filewatcher application. The premis is: User uploads an xml file onto the web server the filewatcher app sees the xml file filewatcher app reads the file and inserts...
3
by: tshad | last post by:
Is there some way to have the fileWatcher to initially check the folder to see if there is anything in it (based on the filters)? If I reboot the machine, for example, and it starts up the...
0
by: tshad | last post by:
I have a filewatcher program that is working syncronously (which is how I want it to work). But my program will handle whatever files are in the folder at the time it runs. So when I drop 15...
7
by: tshad | last post by:
What exactly is FileWatcher doing? When you drop 100 files in a folder it is watching, it normally will fire of the event 100 times. In my case, I do all my processing on the first event so I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.