How to check the drive is exists in the system from the given string in WPF. I have tried the following
Ex: FileLocation.Text = \"K:\\TestDriv
FileLocation.Text = \"K:\\TestDriv
you can try this....
MessageBox.Show(Environment.SystemDirectory.Contains("D").ToString());
This will get if any drives' letter is E. You can change it to any other letter.
DriveInfo.GetDrives().Any(d => d.Name.ToUpper()[0] == 'E');