FORUMS

[Q] access MTP from command line

194 posts
Thanks Meter: 39
 
By wim69, Senior Member on 30th July 2014, 01:15 PM
Post Reply Subscribe to Thread Email Thread
I have been looking around for this, but couldn't find a solution.

When connecting my Nexus 5 to my computer, it shows up as Portable Device. I can access data via explorer.

How can I access the data via Command Line when not in recovery? I want to make a batchfile to copy certain files.

thanks.
 
 
30th July 2014, 01:26 PM |#2  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 18,800
 
More
Quote:
Originally Posted by wim69

I have been looking around for this, but couldn't find a solution.

When connecting my Nexus 5 to my computer, it shows up as Portable Device. I can access data via explorer.

How can I access the data via Command Line when not in recovery? I want to make a batchfile to copy certain files.

thanks.

You can use adb but it is more complicated when Android is booted. It would be simpler to use a bash shell script from android than a batch file from windows

Although my assumption is you want to create a task in windows that detects when your nexus is connected and copy certain files over as a backup. In which case, can I recommend FolderySync instead? It can be used to automatically backup files to cloud or local networked computers automatically. For example, whilst I sleep, my /sdcard backs up over wifi to my NAS
The Following User Says Thank You to danarama For This Useful Post: [ View ]
30th July 2014, 06:56 PM |#3  
Senior Member
Thanks Meter: 218
 
More
It should be pretty simple to use ADB for this... Make sure that adb is in your path and then run "adb pull" for each file you want to pull to your computer.
The Following User Says Thank You to raptir For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes