Need help copying files from android phone

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mirrormirror
Posts: 129
Joined: 08 Feb 2016 20:25

Need help copying files from android phone

#1 Post by mirrormirror » 20 Feb 2017 13:45

I would like a batch file to copy files from an android device \sdcard to a specified location - after plugging in the phone.

I know how to write the batch copy and everything but I can't figure out how to access the android storage device from within a command-prompt. If I could get it mounted as a readable volume or drive letter I can handle the rest.

Anyone know of a way to do this - even with 3rd party command-line utilities?

pieh-ejdsch
Posts: 240
Joined: 04 Mar 2014 11:14
Location: germany

Re: Need help copying files from android phone

#2 Post by pieh-ejdsch » 20 Feb 2017 15:24

Theres is an Option Debug Mode in Settings.
this can be enabled

wen you plug in your USB-cable it will list 3 Modes.
- USB
- Windows XP kompatible and
- Phone

use XP Mode to become access like an Diskdrive.

Phil

mirrormirror
Posts: 129
Joined: 08 Feb 2016 20:25

Re: Need help copying files from android phone

#3 Post by mirrormirror » 20 Feb 2017 17:40

Thank you for the response. I will need to try later but doesn't that mode demand single-use access? In other words, it only allows access to the card from the plugged-in computer or from the android OS, but not both. I've seen this before but not sure which version of android OS.

I was hoping for a solution using the standard MTP connection where I would be able to see the SD card as a drive letter, volume, or even a network URL. Any other help would be appreciated.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Need help copying files from android phone

#4 Post by Squashman » 20 Feb 2017 17:57

MTP was not designed to function that way.

mirrormirror
Posts: 129
Joined: 08 Feb 2016 20:25

Re: Need help copying files from android phone

#5 Post by mirrormirror » 20 Feb 2017 18:50

MTP was not designed to function that way.

Sure, but the batch command-line was not designed to do much of what you guys do here :)

If windows explorer can see the sd card then perhaps there is a way for the command-line to see it - just looking for anything others might have tried or used - even 3rd party command-line tools.

at the very least adb.exe can interface with the connected android device if debugging is turned on but I haven't explored trying to use it to do a batch file-copy.

SIMMS7400
Posts: 546
Joined: 07 Jan 2016 07:47

Re: Need help copying files from android phone

#6 Post by SIMMS7400 » 22 Feb 2017 05:30

mirrormirror wrote:
MTP was not designed to function that way.

Sure, but the batch command-line was not designed to do much of what you guys do here :)


MirrorMirror spittin' that truth :D :D

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Need help copying files from android phone

#7 Post by Squashman » 22 Feb 2017 07:36

Most of what is done with the batch files here is based on the rules of how cmd.exe works.

Post Reply