title: Get Amount of Free Space Available -GDI+ Generic Exception
body: <p>GDI+ is throwing <code>Generic Exception</code> when i try to Save Bitmaps to a drive with low disk space.</p>
  
  <p>So im trying to do this to check and see if at-least 10MB is available on the Drive.</p>
  
  <pre><code>DriveInfo[] oDrvs = DriveInfo.GetDrives();
      foreach (var Drv in oDrvs) {
          if (Drv.IsReady) {
              Console.WriteLine(Drv.Name + " " + Drv.AvailableFreeSpace.ToString);
          }
  }
  </code></pre>
  
  <p>But what i have is a Path not a drive letter,i can do something like </p>
  
  <pre><code>FileInfo f = new FileInfo(path);    
  string drive = Path.GetPathRoot(f.FullName);
  </code></pre>
  
  <p>But i dont know how i can use <code>drive</code> as a parameter for the above code.Please advice.</p>