private void deletefileOrDic(System.IO.DirectoryInfo path)
{
try
{
foreach (System.IO.DirectoryInfo d in path.GetDirectories())
{
d.Delete(true);
}
foreach (System.IO.FileInfo f in path.GetFiles())
{
f.Delete();
}
}
catch (Exception ex)
{
}
}