安卓:adb.exe拉/mnt/sdcard/somefile.txt不工作? [英] Android: adb.exe pull /mnt/sdcard/somefile.txt not working?

查看:280
本文介绍了安卓:adb.exe拉/mnt/sdcard/somefile.txt不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我做错了什么。我想从我的设备与ADB命令获取文件:

Maybe I'm doing something wrong. I'm trying to get a file from my device with adb command:

adb pull /mnt/sdcard/deviceinfo.dat C:\

但我总是得到的消息:

but I always get the message:

cannot create 'c:\\deviceinfo.dat': No such file or directory

在设备上的文件esists:

The file esists on device:

adb shell ls /mnt/sdcard/deviceinfo.dat

返回

/mnt/extsd/deviceinfo.dat

我trye​​d一些变种:

I've tryed with some variants:

adb pull /mnt/sdcard/deviceinfo.dat
adb pull /mnt/sdcard/deviceinfo.dat C:\
adb pull /mnt/sdcard/deviceinfo.dat C:\deviceinfo.dat

但我总是得到同样的错误。哪里是拉什么问题?我运行的cmd.exe以管理员身份。

but I always get the same error. Where is the problem for pull? I'm running cmd.exe as Administrator.

推荐答案

我会痛苦的几个小时后,回答我的问题...

I'll answer to my own question after some hours of pain...

CMD.EXE与鼠标使用上下文菜单中选择以管理员身份运行,但可惜的命令失败,因为,出于某种原因,adb.exe不能写入本地文件启动。因此,错误:无法创建C:\\\\ deviceinfo.dat...

cmd.exe was launched with the mouse using context menu option "Run as administrator" but unfortunatelly commands fail because, for some reason, adb.exe can't write local file. So the error: cannot create 'c:\\deviceinfo.dat' ...

现在正确的步骤:

1 - Windows key (focus on search textbox)
2 - Type cmd.exe (it find cmd.exe obviously)
3 - CTRL+SHIFT+ENTER (to run as Administrator)
4 - adb shell ls /mnt/sdcard/deviceinfo.dat (works fine now!)

为什么使用以管理员身份运行上下文菜单(后命令提示图标,右键单击我的Win7栏上)并不如预期般工作,我不明白。

I don't understand why using "Run as Administrator" on the context menu (after right click on command prompt icon on my Win7 bar) doesn't work as expected.

这篇关于安卓:adb.exe拉/mnt/sdcard/somefile.txt不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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