Change Creation time of file from your drive

RaviRanjanKr
Posted by RaviRanjanKr under C# category on | Points: 40 | Views : 2839
This code snippet enable you to change creation time of any file using C#
To change creation time of any file you need to access IO (Input Output) namespace.
as
using System.IO;

suppose you want to change the creation date of file by adding 1 days then you can use given code
Directory.SetCreationTime("path_of_filename", DateTime.Now.AddDays(1));

Comments or Responses

Login to post response