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

Detecting a change in a file or directory

I have several pieces of data that I use the HttpApplicationState for,
because they rarely change and are used by everyone. When these pieces of
data are created, they are created either from several files that rarely
change or are a list of the files in a directory that I rarely add or remove
files from. Therefore, I want to be able to detect when a file is added to,
removed from, or modified in one of these directories. Because I create the
HttpApplicationState in the Global.asax.vb file, I need to do the detecting
in there. However, it does not seem to want to let me create a
System.Io.Directory object in that file. How can I detect when a file or
directory is added, removed, or modified? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Dec 4 '05 #1
3 1133
file watcher service can tell you when a file changed or not on a NTFS drive

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:u8***************@TK2MSFTNGP11.phx.gbl...
I have several pieces of data that I use the HttpApplicationState for,
because they rarely change and are used by everyone. When these pieces of
data are created, they are created either from several files that rarely
change or are a list of the files in a directory that I rarely add or
remove files from. Therefore, I want to be able to detect when a file is
added to, removed from, or modified in one of these directories. Because I
create the HttpApplicationState in the Global.asax.vb file, I need to do
the detecting in there. However, it does not seem to want to let me create
a System.Io.Directory object in that file. How can I detect when a file or
directory is added, removed, or modified? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Dec 4 '05 #2
How do I use that?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Brian Henry" <no****@nospam.com> wrote in message
news:u6***************@TK2MSFTNGP09.phx.gbl...
file watcher service can tell you when a file changed or not on a NTFS
drive

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:u8***************@TK2MSFTNGP11.phx.gbl...
I have several pieces of data that I use the HttpApplicationState for,
because they rarely change and are used by everyone. When these pieces of
data are created, they are created either from several files that rarely
change or are a list of the files in a directory that I rarely add or
remove files from. Therefore, I want to be able to detect when a file is
added to, removed from, or modified in one of these directories. Because I
create the HttpApplicationState in the Global.asax.vb file, I need to do
the detecting in there. However, it does not seem to want to let me create
a System.Io.Directory object in that file. How can I detect when a file or
directory is added, removed, or modified? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Dec 4 '05 #3
http://www.dotnetspider.com/kb/Article1623.aspx

Crossposting is bad, using google is good :8-)
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:e7****************@TK2MSFTNGP12.phx.gbl...
How do I use that?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Brian Henry" <no****@nospam.com> wrote in message
news:u6***************@TK2MSFTNGP09.phx.gbl...
file watcher service can tell you when a file changed or not on a NTFS
drive

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:u8***************@TK2MSFTNGP11.phx.gbl...
I have several pieces of data that I use the HttpApplicationState for,
because they rarely change and are used by everyone. When these pieces of
data are created, they are created either from several files that rarely
change or are a list of the files in a directory that I rarely add or
remove files from. Therefore, I want to be able to detect when a file is
added to, removed from, or modified in one of these directories. Because
I create the HttpApplicationState in the Global.asax.vb file, I need to
do the detecting in there. However, it does not seem to want to let me
create a System.Io.Directory object in that file. How can I detect when a
file or directory is added, removed, or modified? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/



Dec 5 '05 #4

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

Similar topics

6
by: bissatch | last post by:
Hi, I am about to write an application that will display all pdf files in a folder and display them by file name in order of date. Is there an easy way of doing this? I was thinking about...
5
by: Jole | last post by:
Hi I'm writing a program that needs to read from a file. In order for the program to be robust, it should somehow check that the file isn't corrupt, or stuffed in any way. For example, that...
1
by: jeff | last post by:
Hiya I just woundering how would I go about detecting addition, deletion or change to files in a folder? Ideally id like to look at a linux directory and say watch all its contents and then...
3
by: Nathan Sokalski | last post by:
I have several pieces of data that I use the HttpApplicationState for, because they rarely change and are used by everyone. When these pieces of data are created, they are created either from...
8
by: dagecko | last post by:
Hi I would like to know how to detect if a file is binary or not. It's important for me but I don't know where to start. Ty
7
by: BWill | last post by:
Hi, I'm writing a file browser, but I'm not sure how I could go about detecting the drives available on windows and linux systems (preferably using the standard modules if possible). I guess I...
2
by: runner7 | last post by:
Can anyone tell me if there is a way in PHP to determine when a session times out on the server or how many concurrent sessions there are in your application?
3
by: Chris Mellon | last post by:
This appears to be a change in behavior from Python 2.4 to Python 2.5, which I can't find documented anywhere. It may be windows only, or related to Windows behavior. In 2.4, the current...
1
by: wwwords | last post by:
Is there a general method for detecting that a user has changed the record currently visible on a form, whether this is by hitting PgUp or PgDn or clicking on a navigation button, even if no change...
2
by: hharry | last post by:
Hello All, Does anyone know of a method to automatically detect if a file is corrupted ? Due to a failed backup process a number of files were corrupted. The files are mostly .xls, .doc, .pdf....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
isladogs
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...

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.