Using FolderBrowserDialog on a Removable Device / Removable storage

流过昼夜 提交于 2019-12-01 19:54:39

My guess would be that the location doesn't have a file system representation (path) such as c:...\my camera.

You should be able to get the PIDL of the folder, (it should be one the the flags for the function), and implement the copy using the COM shell interfaces.

SHBrowseForFolder

Using PIDL to enumerate a folder

Is there a way to map the camera path to a drive letter? (I'm thinking something like "subst" or "net use" from a command prompt.) Maybe that would fool the FolderBrowserDialog into behaving as desired?

Where did you get the path from? From the address bar in Explorer? This doesn't display the file system path, but a "user friendly" representation of it.

To get the path, right-click the address bar, and choose "Copy Address as Text" or "Edit Address".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!