SEARCH ALL FLOPPY,CD AND HARD DISK DRIVES

Labels:

//search all floppy,cd and hard disk drives available in our PC
//its varies from system to system


for(char Ch='A';Ch<='Z';Ch++) { string Dir = Ch + @":\"; if (Directory.Exists(Dir)) {
disksListBox.Items.Add( Ch+ @":" ); //Add into ListBox
}
}

0 comments:

Post a Comment