Create Folders or Directories with FileNames suffixed with Current TimeStamp using C#

ganeshms87
 
on Aug 10, 2012 01:43 AM
4461 Views

Sir,

How to create folders in server side in asp.net with time value

ie,

folder1_10.30,folder_11.30 lie this?

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Mudassar
 
on Aug 10, 2012 01:47 AM
string folderName = "MyFolder_" + DateTime.Now.ToString("hh_mm_tt");
Directory.CreateDirectory(@"C:\" + folderName);