Mount usb port under specific name


we are using two usb ports on the T20. When the first usb ist mounted “USB HD” is shown in the explorer. “USB HD2” when the second one is mounted. Doesn’t matter on which port the usb is mounted. Everything fine so far.
Is it somehow possible to mount usb from port x under “USB HDX”, no matter if it is the first mounted usb or not?

Thanks in advance.

Dear @marfro,

Since USB is a hot-pluggable device, WinCE assigning numbers on first come first number. There is no easy method to fix a mounting name for USB drive. One has to modify WinCE code to fix it. Please refer thread for more information.

I would like to suggest another method that would be easy for you. Using SetupDiGetDeviceInterfaceDetail get notified for USB device connection then find the mount path and access the storage. Reference code for SetupDiGetDeviceInterfaceDetail.

A one more relevant to your use case :

Please let us know if you need any help on this.