本文实例讲述了C#判断指定驱动器是否已经准备就绪的方法。分享给大家供大家参考。具体如下:
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
class Program {
static void Main(string[] args) {
// Get info regarding all drives.
DriveInfo[] myDrives = DriveInfo.GetDrives();
// Now print stats.
foreach (Dr