Folder access
-
Hi, I am currently working on an encryption application. I created a windows service that watches over a directory and when a new file is added, it encrypts it. Now here is the problem :doh:. I want to find out which user has added a file to the directory (which is o n network). Is this possible to find out which user has dropped or added the file to the directory in C#. Thanks in advance -Sandeep .Net Developer
-
Hi, I am currently working on an encryption application. I created a windows service that watches over a directory and when a new file is added, it encrypts it. Now here is the problem :doh:. I want to find out which user has added a file to the directory (which is o n network). Is this possible to find out which user has dropped or added the file to the directory in C#. Thanks in advance -Sandeep .Net Developer
erm.. depending on the environment that you are using but.. ..the owner of the file? -- michael - www.code.ae
-
erm.. depending on the environment that you are using but.. ..the owner of the file? -- michael - www.code.ae
-
Hey Micheal, Its not the file owner. The managers want to know who has dropped the file for encryption. We want the user who dropped the file into the folder in a network.
This information doesn't exist anywhere. Usually, depending on the network O/S, the person who dropped the file becomes that copy of the file's owner. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
This information doesn't exist anywhere. Usually, depending on the network O/S, the person who dropped the file becomes that copy of the file's owner. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Thanks for the info. Is there a way to get the owner details from the file. I use windows XP.
Well, there's nothing in the .NET BCL that will do this, so alternate methods must be used. Here[^] is an example in VB.NET using WMI to get the owner. And here[^] is an example in C++. I wasn't able to find a straight c# example. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Well, there's nothing in the .NET BCL that will do this, so alternate methods must be used. Here[^] is an example in VB.NET using WMI to get the owner. And here[^] is an example in C++. I wasn't able to find a straight c# example. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome