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 do follow
bool isDriveExists(string driveLetterWithColonAndSlash) { return DriveInfo.GetDrives().Any(x => x.Name == driveLetterWithColonAndSlash); }