c# 操作MTP,采用:MediaDevices
大笨熊:
MediaDevices
大笨熊:
https://stackoverflow.com/questions/18512737/how-to-manage-files-on-an-mtp-portable-device
大笨熊:
When you connect this device to your computer, it's not mounted as a normal filesystem (like a hard drive or USB stick). Rather, the OS accesses the device's filesystem via MTP.
As far as I know there is no managed API for accessing MTP, but you can still interact with them from C# via COM. You will need to use the Portable Device APIs. It's quite complicated though. Check this blog post to get you started.
大笨熊:
https://github.com/Bassman2/MediaDevices