Search This Blog

Thursday, May 24, 2012

Add date string to a file name

 string logfile = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath), string.Format("RISCONVDB_{0}.LOG", DateTime.Now.ToFileTime()));

No comments: