Get the Way to Vista Portable Device

I am trying to write a quick application to fix ID3 tags on my MP3 player and I hit an annoying grip. When I connect the MP3 player to USB, it appears in Vista under the category "Portable Devices" and does not receive the drive letter. I am using Vista x64 Home Premium and .NET 3.5.

The path looks something like this: "Computer \ MP3 device"

Trying to simply use this path does not work, and from what I saw there is no SpecialFolder that indicates where I am trying to get it. I tried to open Disk Management and assign a drive letter, but the portable device does not appear.

I just want to be able to do Directory.GetFiles (...). Is there any way to get a way that allows me to do this? Has anyone else come across something like this in Vista?

+3
source share
1 answer

If it is not displayed as a mass storage device, it will not be displayed in the file system.

+1
source

Source: https://habr.com/ru/post/1708744/


All Articles