I have a NAS on my home network and it is mapped as drive K:. Sometimes the NAS is not ready as win starts up and the drive shows with red-"X" in File Explorer. If I click the drive with the X showing, it instantly displays the Folders, suggesting to me that it is now mapped but was not during the start up.
I have a very simple MP3 player I have written that believes the win red-X and not the actual status of the mapped drive, if that makes sense. If I click an MP3 file to play, it says the drive is not available. If I first click the drive in File Explorer, then the MP3 file, it works OK.
How can I add a "refresh" for that Mapped drive status in my MP3 player?