FileSystemWatcher - is this possible ?

P

Pete Kane

Hello All, I have written a Windows Service which consists of a
FileSystemWatcher monitoring some network folders, on creation of a new
file or deletion of an existing, a record is inserted into a SQL table (
all works very well ). What I would like to have , is , the userid of
the person who created (or deleted ) the file ( not the original creator
in the case of a deletion - but the person who deleted it). As this
service runs on a server I always get the userid of the server user
(Administrator) I don't know if this is possible but thought I'd ask.
 
I

Ignacio Machin ( .NET/ C# MVP )

Hello All, I have written a Windows Service which consists of a
FileSystemWatcher monitoring some network folders, on creation of a new
file or deletion of an existing, a record is inserted into a SQL table (
all works very well ). What I would like to have , is , the userid of
the person who created (or deleted ) the file ( not the original creator
in the case of a deletion - but the person who deleted it). As this
service runs on a server I always get the userid of the server user
(Administrator) I don't know if this is possible but thought I'd ask.

Hi,

I do not think it's possible but this question has been asked before,
take a look in the archives
 
P

Peter Kane

Ignacio said:
Hi,

I do not think it's possible but this question has been asked before,
take a look in the archives
Ok thanks - someone has suggested WMI might help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top