Sorry to respectable sir/mam because i put my last question absolutely in wrong manner now i am going to mention some details
i write the following code for the file searching in my anti virus and it give exception when it scan "system volume information " folder
please help me by editing this code that it also give me the list of all files in "system volume information" folder
code is:
I am using c# language
***********************************************************************
//get the drive names on the target computer
DriveInfo[] drives = DriveInfo.GetDrives();
foreach (DriveInfo drive in drives)
{
//Console.WriteLine("Drive: {0} {1}", drive.Name, drive.DriveType);
comboBox2.Items.Add(drive.Name);
if (drive.DriveType.ToString() == "Fixed")
{
try
{
//Search for the folder in each drive
string[] dirs = //Directory.GetDirectories(drive.Name, "MySql", SearchOption.AllDirectories);
Directory.GetDirectories(drive.Name,"*.*",SearchOption.AllDirectories);
comboBox1.Items.Add(dirs.Length);
foreach (string dir in dirs)
{
comboBox1.Items.Add(dir);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
*********************************************************************** i am waiting for your kind replyThumbs Up
Edited by Jaan, 20 April 2010 - 03:00 AM.
Please use code tags when you are posting your codes!


Sign In
Create Account

Back to top









