什么是亚行推默认工作目录/拉,我如何改变呢? [英] what is the default working directory for adb push/pull and how do I change it?

查看:146
本文介绍了什么是亚行推默认工作目录/拉,我如何改变呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我掏出从Android SD卡的文件中的亚行,似乎它去 C:\\ Documents和Settings \\用户名默认情况下。我不知道它是怎么设置到这个文件夹,因为这不是在安装了亚行,但可能已经得到的东西做的事实,即工作区 .android 文件夹都设在这里。我该如何对亚行的拉命令更改此默认位置?

I pulled out a file from the android sdcard using adb and it seems it goes to c:\documents and settings\userName by default. I don't know how it got set to this folder since this is not where adb is installed, but probably has got something to do with the fact that both the workspace and .android folders are located here. How do I change this default location for pull command of adb?

推荐答案

ADB拉亚行推似乎是当前目录(又名)。
如果您发出一个命令,如下面的,不指定目标目录

The default directory for adb pull or adb push seems to be the current directory (aka . ). If you issue a command such as the following, not specifying the target directory

adb pull /boot.txt

文件(提供它存在)将被复制到当前目录

the file (provided it exists) will be copied to the current directory.

Windows用户:

采取下列通知:如果您使用的是Windows(Vista或更高版本),有机会,如果当前目录需要提升的权限来写时,Windows会悄悄地复制你的当前目录的目录结构被称为一个特殊的文件夹 VirtualStore ,将您的文件复制它。

Take notice of the following: If you are using Windows (Vista or newer), chances are that if the current directory requires elevated privileges to write on, Windows will silently replicate the directory structure of your current directory in a special folder called VirtualStore and will copy your files in it.

VirtualStore 的完整路径是:%LOCALAPPDATA%\\ VirtualStore ,其中最有可能将转化为 C:\\用户\\<&ACCOUNT_NAME GT; \\应用程序数据\\本地\\ VirtualStore

The full path for VirtualStore is: %LOCALAPPDATA%\VirtualStore, which most likely will translate into C:\Users\<account_name>\AppData\Local\VirtualStore.

所以,在以下情况下,

C:\> cd "C:\Program Files (x86)\MyCustomADBInstallLocation"
C:\Program Files (x86)\MyCustomADBInstallLocation> adb pull /boot.txt

文件 boot.txt 将这个文件夹中结束了。

your file boot.txt will end up in this folder

C:\Users\<account_name>\AppData\Local\VirtualStore\Program Files (x86)\MyCustomADBInstallLocation\

这篇关于什么是亚行推默认工作目录/拉,我如何改变呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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