473,385 Members | 1,925 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,385 software developers and data experts.

Files Watcher

Hello everybody,

I need help. I search to make a function that verify file content
(each time a file of the system is opened, created, changed) BEFORE
another process modify it.

It's a school's project so please if you can help me ...

Thx for your help
Nov 15 '05 #1
3 1131
Hi,

I think that the FileSystemWatcher will not work here, as it works AFTER
the modification was performed.
You need something to intercept the system call before they happen, I think
that you will have to P/Invoke some API function, but I have no idea which
one :(

Hope this help,

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

"Cyril Vi?ville" <cy************@hotmail.com> wrote in message
news:75**************************@posting.google.c om...
Hello everybody,

I need help. I search to make a function that verify file content
(each time a file of the system is opened, created, changed) BEFORE
another process modify it.

It's a school's project so please if you can help me ...

Thx for your help

Nov 15 '05 #2
Not possible using managed code, your only option is to write a File system
driver using the Device Driver Development kit.

Willy.

"Cyril Vi?ville" <cy************@hotmail.com> wrote in message
news:75**************************@posting.google.c om...
Hello everybody,

I need help. I search to make a function that verify file content
(each time a file of the system is opened, created, changed) BEFORE
another process modify it.

It's a school's project so please if you can help me ...

Thx for your help

Nov 15 '05 #3
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message news:<uy**************@TK2MSFTNGP12.phx.gbl>...
Not possible using managed code, your only option is to write a File system
driver using the Device Driver Development kit.

Willy.
As i said in my previous post I don't have time so i won't program
that plugin. REALLY THX
"Cyril Vi?ville" <cy************@hotmail.com> wrote in message
news:75**************************@posting.google.c om...
Hello everybody,

I need help. I search to make a function that verify file content
(each time a file of the system is opened, created, changed) BEFORE
another process modify it.

It's a school's project so please if you can help me ...

Thx for your help

Nov 15 '05 #4

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

Similar topics

0
by: yasir | last post by:
I am using Watcher to detect any file renamed event. From time to time, or when lot of files gets renamed at the same time, Watcher fails to detect some files. I have set the InternalBuffereSize to...
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...
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...
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...
4
by: Andy B | last post by:
I need to make a program that stays in the xp/vista system tray. I have to constantly search xml files to make sure the program stays updated with the newest xml data. What is the least CPU...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.