0

How do I specify the file path for a connected android device in a command prompt on a windows 10 operating system?

enter image description here

Adam Ledger
  • 107
  • 6

1 Answers1

1

Not at all. It’s impossible.

On Windows, access to MTP devices is only possible using Explorer or other specialized software.

MTP does not provide block access but atomic object access. As such, it is not compatible with common file manipulation methods.

Daniel B
  • 60,360
  • 9
  • 122
  • 163
  • how do you figure sports fan? I mean if it's impossible then how does the device even show up in the list? – Adam Ledger Sep 02 '19 at 18:15
  • 1
    @Adam by the magic of Explorer being written to support MTP devices. It does not mean that the device has a drive letter, path or any other information that can be passed to applications by which to pull or push files to or from it. Sure someone could write a client which presented a standard filesystem device in the same way that there were, in the past, WebDAV or FTP clients built into explorer, but to my knowledge no one has bothered. – Mokubai Sep 02 '19 at 18:21
  • Yeah I really want to believe in magic too Mr Potter but inductive reasoning wise everything turns out to be easy and boring once I am bothered to figure it out. which may or may not happen I guess that's the magic in the universe right there – Adam Ledger Sep 02 '19 at 18:32
  • No built-in way, but you can access devices via **PowerShell** code. Here's a few lines that reveal all items under **This PC**: `$shell = new-object -ComObject shell.application; $pc = $shell.namespace(17); $pc.items()` – Keith Miller Sep 02 '19 at 18:44
  • wanted to provide more infobut question is already closed! – Keith Miller Sep 02 '19 at 18:45
  • 1
    Linked "Duplicate" provides no working code. – Keith Miller Sep 02 '19 at 20:36
  • @Keith then feel free to post a solution to the linked question. – Mokubai Sep 02 '19 at 21:17
  • Let's see if the OP is paying attention. Don't know if PowerShell script suits his purposes. – Keith Miller Sep 02 '19 at 21:26