|
-
May 17th, 2004, 04:00 PM
#1
Thread Starter
Hyperactive Member
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?
-
May 17th, 2004, 06:17 PM
#2
Sleep mode
Check System.IO.FileInfo Class .
-
May 18th, 2004, 12:06 PM
#3
Thread Starter
Hyperactive Member
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.
-
May 18th, 2004, 06:17 PM
#4
Sleep mode
-
May 11th, 2011, 09:21 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|