To set the creation time of your file.

Gopesh9
Posted by Gopesh9 under C# category on | Points: 40 | Views : 867
Suppose you want to set or change the creation time of your file located in some place.

Directory.SetCreationTime("PATH OF FILE", DateTime);


For setting the creation time of your file you have to send two parameters. First parameter will be the path of the file and second parameter will be the datetime object to give the creation that to that file.

Comments or Responses

Login to post response