Has anyone found a way to access files on an attached media device which is attached as an MTP device? I want to write a script that will RoboCopy my files from a smartphone to a backup folder. I have tried this without luck...

 Code:
;****************************************************
; Backup.kix
;****************************************************

Color w+/b
$rc = SetConsole("MAXIMIZE")
Cls
Break On

Color n/y+ AT (1,25) "Samsung Galaxy S7 SmartPhone" Color w+/b

$date = SubStr(@DATE,1,4) + SubStr(@DATE,6,2) + SubStr(@DATE,9,2)

;=====================================================
$source = "\\Windows7\Galaxy S7\Card"
$dest = "G:\Android_Backup_Galaxy_S7\Card\" + $date
$options = " /s /z /r:2 /w:2"
Gosub BACKUP

;=====================================================
$source = "\\Windows7\Galaxy S7\Phone"
$dest = "G:\Android_Backup_Galaxy_S7\Phone\" + $date
$options = " /s /z /r:2 /w:2"
Gosub BACKUP

?
? "Done, press any key..."
Get $x

;=====================================================
:BACKUP

$X = SetTitle("Backing up $folder files")
Color w+/r ? "$source to $dest..." Color w+/b
$text = "Robocopy.exe " + Chr (34) + $source + Chr (34) + " " + Chr (34) + $dest + Chr(34) + $options
Shell $text

Return


Thanks, in advance,

Alan


Edited by Mart (2017-07-14 04:56 PM)
Edit Reason: Please use code tags when posting code.