//Posted by anil jain
//Memory Dumps -->3-types => Complete,small(mini),Kernal
string memorydump= root + ":\\WINDOWS\\Minidump";
string[] a= Directory.GetFiles(memorydump);
for (int i = 0; i < a.Count(); i++)
{
try
{
File.Delete(a.ElementAt(i));
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
if (File.Exists(root + ":\\WINDOWS\\MEMORY.DMP"))
{
File.Delete(root + ":\\WINDOWS\\MEMORY.DMP");
}
No comments:
Post a Comment