如何从Windows 7命令行通过USB访问Android文件系统 [英] How to access Android File system from Windows 7 command line through USB

查看:597
本文介绍了如何从Windows 7命令行通过USB访问Android文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid设备(三星galaxy S4)连接到我的笔记本电脑(Windows 7),我希望能够从Windows 7的命令行访问Android设备上的文件。命令:

 光盘的电脑\ GGS4 \电话
 

 电脑\ GGS4 \电话:
 

不工作

仅供参考,为什么我要这样做的原因是使用 mp3slpt 从笔记本电脑到削减在Android设备上的MP3文件。 是这样的:

  D:\ TEMP> mp3splt电脑\ GGS4 \播客\ program1.mp3 7.12 7.30 -d了-o program1Extract
 

解决方案

较新的Andr​​oid设备(主要)使用 MTP 与USB主机进行通信。旧设备被认定为的大容量存储设备的。 Win7的支持MTP,但它并没有摩的的设备作为的驱动器的和设备存储,因此不可通过的文件路径的。

我认为最好的办法是将文件传递到之前复制 mp3splt

 亚行拉播客/ program1.mp3
mp3splt program1.mp3 7.12 7.30 -d了-o program1Extract
德尔program1.mp3
 

您也可以开发一个Win7的驱动程序,它提供了一个虚拟驱动器使用MTP或您的设备,然后可以准与上运行FTP服务器在Windows驱动本地Win7的例子)。

When my Android device (Samsung galaxy s4) is connected to my laptop (Windows 7), I would like to be able to access files on the Android device from the Windows 7 command line. The commands :

cd Computer\GGS4\Phone

or

Computer\GGS4\Phone:

don’t work

FYI, the reason why I need this is to use mp3slpt from laptop to cut mp3 file on the Android device. Something like :

D:\temp> mp3splt Computer\GGS4\Podcast\program1.mp3  7.12 7.30 -d out -o  program1Extract

解决方案

Newer Android devices (primarily) use MTP to communicate with USB hosts. Older devices were identified as mass storage devices. Win7 supports MTP but it doesn't "mount" the device as a drive and the device storage is therefore not available via a file path.

I think the best solution is to copy the file before passing it to mp3splt:

adb pull Podcast/program1.mp3
mp3splt program1.mp3 7.12 7.30 -d out -o program1Extract
del program1.mp3

You can also develop a Win7 driver that provides a virtual drive using MTP or run an FTP server on your device which you can then associate with a Windows drive (native Win7 example).

这篇关于如何从Windows 7命令行通过USB访问Android文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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