通过MTP C#/ VB.net文件写入WPD设备 [英] Write Files to WPD device via MTP C#/VB.net

查看:2119
本文介绍了通过MTP C#/ VB.net文件写入WPD设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个将MP3文件复制到SanDisk公司的Sansa M240的应用程序。 SanDisk的没有一个驱动器号,并使用MTP进行文件传输。 的http:/我通过连接到设备的样品跌跌撞撞/blogs.msdn.com/dimeby8/archive/2006/09/27/774259.aspx

I would like to write an application that will copy MP3 files to a SanDisk Sansa M240. The SanDisk doesn't have a drive letter and uses MTP for file transfer. I stumbled through the sample of connecting to the device at : http://blogs.msdn.com/dimeby8/archive/2006/09/27/774259.aspx

但一旦连接,我想不出如何实际拷贝文件/设备上创建文件夹。

but once connected, I can't figure out how to actually copy files / create folders on the device.

我很惊讶,没有任何包装的.Net此COM库。

I am very surprised that there aren't any .Net wrappers for this COM library.

推荐答案

看起来dimeby8发布了一些code处理数据传输。检查其他职位在他的博客,特别是:

It looks like dimeby8 posted some code that handles data transfers. Check other posts in his blog, especially:

<一个href="http://blogs.msdn.com/dimeby8/archive/2006/10/04/Sending-MTP-commands-through-WPD-_2800_Part-1_2900_.aspx"相对=nofollow>发送MTP通过WPD部分命令1

<一个href="http://blogs.msdn.com/dimeby8/archive/2006/10/13/sending-mtp-commands-through-wpd-part-2-data-to-the-device.aspx"相对=nofollow>发送MTP通过WPD部分命令2

<一个href="http://blogs.msdn.com/dimeby8/archive/2006/10/16/sending-mtp-commands-through-wpd-part-3-data-from-device.aspx"相对=nofollow>发送MTP通过WPD部分命令3

这篇关于通过MTP C#/ VB.net文件写入WPD设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆