TheSwamp
Code Red => .NET => Topic started by: uncoolperson on May 19, 2006, 03:25:03 PM
-
trying to get the last user to modify a file to go with the date... but i'm having issues trying to come up with the username of the last user to modify a file
any ideas....
-
so i was thinking yesterday... you know what this thing is missing
-
what about capturing the username on exit, then the next person in can read that value, and when they exit, it would update to the value
-
about 75% of our users are lt...
and this is an executable, and i'm trying to keep the functionality for all file types
-
Echos of B3 If you can get it, it's stored in the file somewhere if you can find it. How was that for absolutely no help whatsoever?
-
Echos of B3
what now?
-
It was a project in another place and time called Byte By Byte (BBB, B3) in which Randall Rath was trying to teach a few brave and intelligent people how to get the information they needed from drawing files without the need of opening the drawing files.
-
few brave and intelligent people
yup, not me
*runs and hides, with my blankie*
-
me either
-
FileInfo thefile = new FileInfo(file);
FileSecurity FileSec = new FileSecurity(file, AccessControlSections.Owner);
NTAccount ownerobj = (NTAccount)FileSec.GetOwner(Type.GetType("System.Security.Principal.NTAccount"));
string modifieduser = ownerobj.Value.Substring(ownerobj.Value.IndexOf("\\") + 1);
so far what i have is this, might just have to go with it...
-
If I remember correctly, the Australian contingent (Kerry Brown, MickD, GlennR), Cornbread, and Hatch (who sadly has never appeared here, I can't find his email address so if anyone has it, shoot him an email) were all playing along. I did a lot of thread reading with glazed eyes and a slack jaw, saying, "whuh?"