adb 命令:push & push 文件讀取與寫入

將文件從PC寫入到設備
adb push
eg:

adb push C:\Users\Shuqing\Desktop\kyb.txt /sdcard
C:\Users\Shuqing\Desktop\kyb.txt: 1 file pushed. 0.1 MB/s (462 bytes in 0.005s)

將文件從設備讀取到PC
adb pull
eg:

adb pull /sdcard/server.log C:\Users\Shuqing\Desktop
/sdcard/server.log: 1 file pulled. 0.0 MB/s (196 bytes in 0.004s)

注意:由於權限問題,不能直接pull到電腦磁盤根目錄,否則會報錯:

C:\Users\Shuqing>adb pull /sdcard/server.log D:\
adb: error: cannot create file/directory ‘D:\’: No such file or directory

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章