• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Using DOS script, how transfer files to S6?

vpelton

Member
Dec 28, 2009
91
3
First off, what I CAN do is plug my S6 into my PC via USB & use Windows Explorer to copy files to the S6. From the PC I can open these files on the S6. When unplugged, I can open these files on the S6.

What I CANNOT do is copy the files with a DOS script. I did this with my old Android phone, but not with the S6. I think the issue is, I don't know what path to use for the S6 in the script.

In the old days, when I plugged in my phone, it was shown as a drive letter. With the S6, it shows as "Computer\SAMSUNG-SM-G920V\Phone\". But when I use that in my script, it doesn't know it's the phone & just creates a dir of that name on the PC & copies the files to that new dir on the PC.

Here's what my DOS script has that works on my old Android phone:

set DEST=j:
cd C:\Users\user_name\Documents\vehicle
xcopy car_battery.doc %DEST%\vehicle\ /Y /D

Why do I want to do this? I have a lot of files & they change all the time on my PC. Once a week I run the script to get the latest on my phone. For various reasons, programs like Dropbox do not work in this case.

So, the question is, without a drive letter, how do I specify the phone in my DOS script?
 
You absolutely cannot do that with a simple wired connection.

http://superuser.com/questions/369959/how-do-i-access-mtp-devices-on-the-command-line-in-windows

http://d0bon.blogspot.com/2014/07/map-drive-letter-to-android-mtp.html

You can do it wirelessly, no problem.

With working adb drivers, you may be able to do it via USB and some extra configuring as explained in the app description below.

Wireless is going to be far easier.

Check out "WebDAV Server"

https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver
 
Last edited:
Upvote 0
OMG! This is awesome. I've been struggling with this for a long time & now it all works. Simply amazing. I really appreciate your help.

For those reading along, here are my notes (using Vista on my PC).

on phone:
run WebDAV Server app

on PC:
double click on Computer icon on Desktop
click on Map network drive (drive letter automatically appears, e.g., z: )
Folder; use value showing on phone but using backslashes, e.g.,
\\192.168.0.104:8080
Reconnect at login (check)
can now use z: in script

Yeah!
 
Last edited:
  • Like
Reactions: EarlyMon
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones