Results 1 to 4 of 4

Thread: get "last saved by" (name of user) from System.IO.Fileinfo???

  1. #1
    Frenzied Member
    Join Date
    Jan 01
    Location
    Denmark
    Posts
    1,045

    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?

  2. #2
    Frenzied Member brin351's Avatar
    Join Date
    Mar 07
    Location
    Land Down Under
    Posts
    1,256

    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.

  3. #3
    Frenzied Member
    Join Date
    Jan 01
    Location
    Denmark
    Posts
    1,045

    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?

  4. #4
    Frenzied Member brin351's Avatar
    Join Date
    Mar 07
    Location
    Land Down Under
    Posts
    1,256

    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
  •