How to Fetch Application Path Files Find C# Code

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 816
How to Fetch Application Path Files Find C# Code
===============================================
string Apppath = Server.MapPath(".");
DirectoryInfo Dir1 = new DirectoryInfo(Apppath);
DirectoryInfo[] SubDir = Dir1.GetDirectories();

string Filecollections = "";
foreach (DirectoryInfo subDirfile in SubDir)
{
Filecollections = subDirfile.FullName+" " + subDirfile.Extension+ " " + subDirfile.LastWriteTime+ " " + subDirfile.Name;
}
Response.Write(Filecollections);

Comments or Responses

Login to post response