473,412 Members | 2,092 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,412 software developers and data experts.

Watcher component

Hi All,

We have a web application written by C#,recently I have asked to create a
page or a component or whatever it is which watches a shared folder on the
network and when somebody drops a file there it automatically gets the file
and dose some processing on it(processing is actually done by the business
layer of our application,that's why it should be part of the application-I
don;t want to use remoting). I just wondered if somebody can give me some
idea how to write this? as a component? as an aspx page? ......
Thanks
Nov 19 '05 #1
3 1021
You can try FileSystemWatcher.

http://msdn.microsoft.com/library/de...classtopic.asp
HTH

Elton Wang
el********@hotmail.com

"Ray5531" wrote:
Hi All,

We have a web application written by C#,recently I have asked to create a
page or a component or whatever it is which watches a shared folder on the
network and when somebody drops a file there it automatically gets the file
and dose some processing on it(processing is actually done by the business
layer of our application,that's why it should be part of the application-I
don;t want to use remoting). I just wondered if somebody can give me some
idea how to write this? as a component? as an aspx page? ......
Thanks

Nov 19 '05 #2
Thanks for your reply,

I know how to use that class.My problem is that in my senario how should I
design it .As a class which is initilized in GLOBAL.ASAX or what?

Thanks
"Elton W" <El****@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com...
You can try FileSystemWatcher.

http://msdn.microsoft.com/library/de...classtopic.asp
HTH

Elton Wang
el********@hotmail.com

"Ray5531" wrote:
Hi All,

We have a web application written by C#,recently I have asked to create a
page or a component or whatever it is which watches a shared folder on
the
network and when somebody drops a file there it automatically gets the
file
and dose some processing on it(processing is actually done by the
business
layer of our application,that's why it should be part of the
application-I
don;t want to use remoting). I just wondered if somebody can give me some
idea how to write this? as a component? as an aspx page? ......
Thanks

Nov 19 '05 #3
If you need to monitor all files that are processed by difference users, it
should be initialized in Application_Start.

"Ray5531" wrote:
Thanks for your reply,

I know how to use that class.My problem is that in my senario how should I
design it .As a class which is initilized in GLOBAL.ASAX or what?

Thanks
"Elton W" <El****@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com...
You can try FileSystemWatcher.

http://msdn.microsoft.com/library/de...classtopic.asp
HTH

Elton Wang
el********@hotmail.com

"Ray5531" wrote:
Hi All,

We have a web application written by C#,recently I have asked to create a
page or a component or whatever it is which watches a shared folder on
the
network and when somebody drops a file there it automatically gets the
file
and dose some processing on it(processing is actually done by the
business
layer of our application,that's why it should be part of the
application-I
don;t want to use remoting). I just wondered if somebody can give me some
idea how to write this? as a component? as an aspx page? ......
Thanks


Nov 19 '05 #4

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

Similar topics

2
by: Marcelo López | last post by:
Hi all. I'm developing a Windows Explorer like app. I have my own repository to store the files and a bd where i keep the path to each file. I have to watch the repository all time to avoid...
0
by: JIM.H. | last post by:
Hello, I am calling this sub to start watcher. It seems if the network drive went down and came back, watcher is not checking the file anymore. What is the secure way to stop it and call this sub...
0
by: Jack David | last post by:
I am using the following code to monitor a directory for new files. The problem is that when I add a new file to the directory the code creates two events??? what do I have to do to limit it to...
1
by: R.A. | last post by:
Hi I have a class which contains a datagrid and a file watcher object. When the file watcher event is triggered then in the event handler I add rows to the data grid. the problem is that every...
5
by: ToddT | last post by:
i've got one app that writes large files to a specific directory that is watched by another app via an instance of the file system watcher class. my problem is that the second app is notified when...
1
by: Stuart Ferguson | last post by:
I am currently writing a Windows service which monitors multiple folders and processes the files in them accordingly. The folders to be monitored are stored in a string array. I can think of 2...
4
by: jimdscudder | last post by:
I am using a file watcher to watch for files changing. My problem is: the string file info returned is all LOWER CASE. Below is the important part of the code? Any suggestions? using...
5
by: Lilith | last post by:
Would I be correct in assuming that the system file watcher is only valid for local drives and won't work for networked file system? -- Lilith
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.