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 6 12267 http://samples.gotdotnet.com/quickst...2fwatcher.aspx
"Troy Murphy" <tr**@solutions oft.cc> wrote in message
news:%2******** *******@TK2MSFT NGP10.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
http://samples.gotdotnet.com/quickst...2fwatcher.aspx
"Troy Murphy" <tr**@solutions oft.cc> wrote in message
news:%2******** *******@TK2MSFT NGP10.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
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**@solutions oft.cc> wrote in message
news:ug******** ******@TK2MSFTN GP12.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******** ***********@twi ster.nyc.rr.com ... http://samples.gotdotnet.com/quickst...2fwatcher.aspx "Troy Murphy" <tr**@solutions oft.cc> wrote in message news:%2******** *******@TK2MSFT NGP10.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
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**@solutions oft.cc> wrote in message
news:ug******** ******@TK2MSFTN GP12.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******** ***********@twi ster.nyc.rr.com ... http://samples.gotdotnet.com/quickst...2fwatcher.aspx "Troy Murphy" <tr**@solutions oft.cc> wrote in message news:%2******** *******@TK2MSFT NGP10.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
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.mach in AT dot.state.fl.us > wrote in message
news:%2******** ********@TK2MSF TNGP10.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**@solutions oft.cc> wrote in message news:ug******** ******@TK2MSFTN GP12.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******** ***********@twi ster.nyc.rr.com ... http://samples.gotdotnet.com/quickst...2fwatcher.aspx "Troy Murphy" <tr**@solutions oft.cc> wrote in message news:%2******** *******@TK2MSFT NGP10.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 > >
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.mach in AT dot.state.fl.us > wrote in message
news:%2******** ********@TK2MSF TNGP10.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**@solutions oft.cc> wrote in message news:ug******** ******@TK2MSFTN GP12.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******** ***********@twi ster.nyc.rr.com ... http://samples.gotdotnet.com/quickst...2fwatcher.aspx "Troy Murphy" <tr**@solutions oft.cc> wrote in message news:%2******** *******@TK2MSFT NGP10.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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 filewatcher component to watch a directory. On create only, the service will read the small XML file, process the information. Once the file is finished processing the information, it should copy the file to another directory and delete the original....
|
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 problems in the following scenarios:
In a Winform App, pointing at a Local Folder
In a Winform App, pointing at a mapped network Folder
In a Winform App, pointing at a UNC network location
In a Windows Service pointing at a local Folder.
|
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 please send or redirect me to an example of doing this?
Thanks,
Troy
|
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 void OnStart(string args)
{
|
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
soon as the file is pasted the service notices, the called process fires and
a series of events occurs.
HOWEVER, if I copy a test file from my CD-ROM drive, nothing happens! WTF?
The called process involves moving the file, so I thought maybe...
| |
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 records into our sql server
filewatcher app deletes the file.
I am trying to figure out the best method of doing this, so I am adding code bit by bit. Currently I have this:
|
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 service - I would
like it to look at the folder initially. The reason being that I may bring
the system down and at that point the files may be written to the target
directory. When I bring it back up again and the service starts, it won't
see that...
|
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 files in the folder at once, the event kicks of 15
times - even though all the files were processed in the 1st event.
This is fine, it just won't find any files in the folder for 14 times.
But if I drop 600 files in the folder at once, it will...
|
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 don't need to
reinitialize all my variables for each file. Normally 50 - 100 files will
be dropped in the folder at a time.
If I get an error, in my code it moves out to my try/catch code in the
service - handle it and then exit. Then the next...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |