Results 1 to 5 of 5

Thread: Access/Modify File Info/Properties of a Text File [C#]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308

    Question Access/Modify File Info/Properties of a Text File [C#]

    Goal:
    Given a Text File “Test.dat”, I need to retrieve the date on which the file was last Modified & Copied to a specific location,

    Problem:
    The file can be transferred (copied) via any method to the specific location and must retain the required information however protocols like FTP change/destroy the original Created/Modified/Accessed date thus rendering them useless.

    Possible Solution:
    Use one of the other fields (in Summary for example: Keywords or Comments) to store the Timestamp prior to copy, this way windows should not be able to destroy the information. Please confirm.

    Create a new field (in Summary for example) to store the timestamp. Please confirm.

    Given these requirements, if it is even possible, how could I write/read from the File Information, like the File Summary Properties for example?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Check System.IO.FileInfo Class .

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Posts
    308
    I wish it was that simple, already checked FileInfo Class and the information is not there.

    Actually IPropertySetStorage Class is what is needed.
    But to crazy for my requirements.

  4. #4

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Access/Modify File Info/Properties of a Text File [C#]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width