PC Review


Reply
Thread Tools Rate Thread

Detecting a change in a file or directory

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      4th Dec 2005
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
(E-Mail Removed)
http://www.nathansokalski.com/


 
Reply With Quote
 
 
 
 
Brian Henry
Guest
Posts: n/a
 
      4th Dec 2005
file watcher service can tell you when a file changed or not on a NTFS drive

"Nathan Sokalski" <(E-Mail Removed)> wrote in message
news:u80HynQ%(E-Mail Removed)...
>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
> (E-Mail Removed)
> http://www.nathansokalski.com/
>



 
Reply With Quote
 
Nathan Sokalski
Guest
Posts: n/a
 
      4th Dec 2005
How do I use that?
--
Nathan Sokalski
(E-Mail Removed)
http://www.nathansokalski.com/

"Brian Henry" <(E-Mail Removed)> wrote in message
news:u6amWqR%(E-Mail Removed)...
> file watcher service can tell you when a file changed or not on a NTFS
> drive
>
> "Nathan Sokalski" <(E-Mail Removed)> wrote in message
> news:u80HynQ%(E-Mail Removed)...
>>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
>> (E-Mail Removed)
>> http://www.nathansokalski.com/
>>

>
>



 
Reply With Quote
 
Vadym Stetsyak
Guest
Posts: n/a
 
      5th Dec 2005
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" <(E-Mail Removed)> wrote in message
news:e7tfvqS%(E-Mail Removed)...
> How do I use that?
> --
> Nathan Sokalski
> (E-Mail Removed)
> http://www.nathansokalski.com/
>
> "Brian Henry" <(E-Mail Removed)> wrote in message
> news:u6amWqR%(E-Mail Removed)...
>> file watcher service can tell you when a file changed or not on a NTFS
>> drive
>>
>> "Nathan Sokalski" <(E-Mail Removed)> wrote in message
>> news:u80HynQ%(E-Mail Removed)...
>>>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
>>> (E-Mail Removed)
>>> http://www.nathansokalski.com/
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
possiblehostsfilehijack: keeps detecting hosts file change retired Spyware Discussion 0 25th May 2009 06:20 PM
possiblehostsfilehijack: keeps detecting hosts file change retired Spyware Discussion 0 25th May 2009 06:20 PM
Detecting a change in a file or directory Nathan Sokalski Microsoft ASP .NET 3 5th Dec 2005 05:22 PM
Detecting a change in a file or directory Nathan Sokalski Microsoft Dot NET 3 5th Dec 2005 05:22 PM
Detecting a change in a file or directory Nathan Sokalski Microsoft VB .NET 4 5th Dec 2005 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 AM.