title: Check Drive Exists(string path)
body: <p>How to check the drive is exists in the system from the given string in WPF. I have tried the following</p>
  
  <p><strong>Ex:</strong> <code>FileLocation.Text = "K:\TestDrive\XXX";</code></p>
  
  <pre><code>if (!Directory.Exists(FileLocation.Text))
  {
           MessageBox.Show("Invalid Directory", "Error", MessageBoxButton.OK);
           return;
  }
  </code></pre>
  
  <p>It is checking full path but <code>it should check "K:\" from the text</code>. Could you please guide me</p>
  
  <p><strong>EDIT 1:</strong> "<strong>K:\TestDrive\XXX</strong>" is not static</p>
  
  <p><strong>EDIT 2:</strong> I tried the below, in my system i'm having <code>3 drives C, D and E</code> but it showing <strong>false</strong>.</p>
  
  <pre><code>Environment.SystemDirectory.Contains("D").ToString(); = "False"
  </code></pre>