get "last saved by" (name of user) from System.IO.Fileinfo???
I have an Excel file, when I go to the Explorer I can see information of when the file was last saved (LastWriteTime).
How do I get that code of who has saved the file, is that possible?
Re: get "last saved by" (name of user) from System.IO.Fileinfo???
If a windows user on the server created/saved the file then you can the the file owner like this > http://forum.codecall.net/topic/5413...ectory-owners/
If it was uploaded from a browsers to the server then the owner will be the account that .net/IIS is running under which is no good to you. If this is the case you'll need to store the data you need somewhere like a database.
Re: get "last saved by" (name of user) from System.IO.Fileinfo???
Maybe a stupid question: But there may be different owners of files in the file directory, how do I adress and find the specific "owner" of a file name "Book1.xlsx" for instance?
Re: get "last saved by" (name of user) from System.IO.Fileinfo???
Have you tried the code in the link I posted? I'd be interested to know the results.