I'm trying to make an app that detects whether my Nokia Lumia 520 is plugged into my laptop. I've tried looking at:
foreach (DriveInfo drive in DriveInfo.GetDrives())
Windows detects the "C" and "D" drives, but not windows phone.
How come windows does not assign a drive letter to this device? When I go to "My computer", what I see is "Computer\Windows Phone".
I've tried:
if(Directory.Exists(@"Computer\Windows Phone"))
{
MessageBox.Show("Found");
}
This it is not signalling to me that there is such a directory.