DirectoryInfo dirInfo = new DirectoryInfo(@"D:\Songs");
long total = 0;
long sizePerMb = 1024;
foreach (FileInfo file in dirInfo.GetFiles())
{
total += Convert.ToInt32(file.Length);
}
long size = total / sizePerMb;
size = size / sizePerMb;
if (size >= 50)
{
}