how to access mobile device (windows mobile 6.0 or higher) drive using C# in Winforms

两盒软妹~` 提交于 2020-01-06 05:39:14

问题


I would like to transfer a file from developer computer to mobile device which is a handheld terminal. Also, I have an SD card which can be used as removable device. When I plugged in that SD Card into PC's slot, it's used as removable device and easily I can copy any file into SD Card using C# DriveInfo class. But, when I plugged in the handheld terminal with USB cable to PC, I would like to reach folders and files in mobile device and want to do same things like copying and deleting any file I wanted...

The problem is that I can not reach mobile device because it's not seen as removable device when I used DriveInfo class of System.IO namespace so can not use that option.

Is there anyone around who came across the same problem or has knowledge for any solution, guys?


回答1:


Ok I done few years ago this so I couldn't remember how at first...but remembered :) You can use RAPI or even newer version RAPI2(this version haven't used personally) library to achieve that.



来源:https://stackoverflow.com/questions/25916478/how-to-access-mobile-device-windows-mobile-6-0-or-higher-drive-using-c-sharp-i

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