17

If I connect a Phone with my Windows 7 machine via USB, it shows up in explorer with a name e.g. Nexus 5. How can I open a command prompt and change directory to this device. For lettered drives, I can just type D: F: etc.

16

In order to assign a drive letter to a removable device, that device must support UMS (USB Mass Storage) protocol. Unfortunately most newer Android phones, especially those without a removable SD Card, do not support UMS. Instead, they support MTP (Media Transfer Protocol) and PTP (Picture Transfer Protocol) protocols. In such devices it's not possible to map storage as a drive in Windows.

See more details on this Superuser.com question.

With that said, on some selected Samsung and Sony Android devices it's possible to enable the UMS mode for external storage only (SD Card). See this app.

Also, if your goal to simply copy files to and from an Android device via command prompt, ADB will allow you to do so. This utility is part of Android SDK tools. You will need USB drivers for your android phone to be installed, USB Debugging activated in Developer Settings on the phone, and authorize the PC to debug the phone (via a prompt on the device.) After that is done, you will be able to use adb push and adb pull commands to copy files & directories, and various Linux shell commands via adb shell <command> (e.g. adb shell ls /sdcard/) to navigate the directory structure on the phone.

1

There are several ways to do it. Unfortunately it is not as easy as it should be. Follow the instructions here: http://www.7tutorials.com/how-map-drives-windows-7

If you already have the share in File Explorer, for instance after inserting an USB device, right click on the share and select Map Drive and select a drive letter.

  • That's for networked devices. There's no mention of mapping USB devices. – user Nov 22 '13 at 4:35
  • It works the same way - unless Microsoft create yet another way to perform tasks just to confuse people. But I have added some clarification. – Andrew Rump Nov 22 '13 at 8:25
1

You can try to install a WebDAV server to the android device, then mount the WebDAV server as a drive on Windows 7. Here is a free WebDAV server from Google Play (Of course, there are many other WebDAV servers in Google Play). And the steps to mount the WebDAV server as a drive on Windows 7.

  • Welcome to Android Enthusiasts! As this is the very same answer you gave here, it has the very same problem: It would be preferable to include the essential parts of the instructions here, and provide the link for reference. Otherwise, your answer becomes partly useless in case the link dies. For further hints, please see: How do I write a good answer. Thanks a lot! – Izzy Jun 23 '14 at 14:56
  • I found this much easier to do than other answers here (although I appreciate and upvote usable answers). If you use Olive Web Dav, you want to paste the complete supplied URL into the 'Map a Network Drive' option, i.e. http://192.168.1.136:8080/, I was up and running in less than 5 minutes, even after trying just the IP, and other varitions first. Good luck to all. – shellter Jul 20 at 16:21

protected by Community Sep 5 '17 at 7:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.