ADMIN为取目录
decimal FileLength = 0;
DirectoryInfo info = new DirectoryInfo("../Admin");
foreach (FileInfo info2 in info.GetFiles())
{
FileLength+= Math.Round((double)(((float)info2.Length) / 1024f), 3);
}
decimal FileLength = 0;
DirectoryInfo info = new DirectoryInfo("../Admin");
foreach (FileInfo info2 in info.GetFiles())
{
FileLength+= Math.Round((double)(((float)info2.Length) / 1024f), 3);
}