简体   繁体   English

如何在Winforms中使用C#访问移动设备(Windows Mobile 6.0或更高版本)驱动器

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

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. 另外,我有一个SD卡,可以用作可移动设备。 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. 当我将该SD卡插入PC的插槽时,它用作可移动设备,因此我可以轻松地使用C#DriveInfo类将任何文件复制到SD卡中。 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... 但是,当我用USB电缆将手持终端插入PC时,我想访问移动设备中的文件夹和文件,并希望执行相同的操作,例如复制和删除所需的任何文件...

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. 问题是我无法到达移动设备,因为当我使用System.IO命名空间的DriveInfo类时,它不被视为可移动设备,因此无法使用该选项。

Is there anyone around who came across the same problem or has knowledge for any solution, guys? 伙计们,周围有人遇到过相同的问题或对任何解决方案都有知识吗?

好的,我几年前就这样做了,所以起初我不记得是怎么回事...但请记住:)您可以使用RAPI或更高版本的RAPI2 (该版本尚未亲自使用)库来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM