|
-
Aug 15th, 2012, 02:48 AM
#1
Thread Starter
Frenzied Member
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?
-
Aug 15th, 2012, 05:45 AM
#2
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.
The problem with computers is their nature is pure logic. Just once I'd like my computer to do something deluded. 
-
Aug 15th, 2012, 12:29 PM
#3
Thread Starter
Frenzied Member
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?
-
Aug 17th, 2012, 05:36 AM
#4
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.
The problem with computers is their nature is pure logic. Just once I'd like my computer to do something deluded. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|