Click here to Skip to main content
16,009,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just learned to read the details of a file with shell32.dll, but I need to write them as well. I couldn't find any solution to the question but I think it can be realized.
Could anyone help me with it?
Thanks a lot. :)
Posted
Comments
[no name] 21-Jun-12 10:41am    
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/bb887b05-2018-4978-b115-c8c98e3542ce

1 solution

look this simple example

C#
using System.IO;
public void ChangeFileAttribute(string FileNameWithPath)
        {
            FileInfo Fln = new FileInfo(FileNameWithPath);
        Fln.CreationTime =DateTime.Now.Date;
            Fln.LastWriteTime = DateTime.Now.Date;
            Fln.LastAccessTime=DateTime.Now.Date;

        }
 
Share this answer
 
Comments
Luluuuu 21-Jun-12 8:13am    
it works fine~thanks a lot~
but what i need is author,remarks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900