Scripting file transfers between Windows 10 phone and PC RRS feed

  • Question

  • I very often connect my Lumia 950 phone to a PC for the purpose of transferring (moving) files from the phone to the PC.

    I'd like to script that so that I don't have to open File Explorer, navigate to the phone's root, then to the phone's µSD, then to the appropriate folder, then select the files, and finally move them to the target location.

    Can this be done, preferably in PowerShell?

    • Moved by Bill_Stewart Thursday, March 14, 2019 8:51 PM This is not "scripts on demand"
    Tuesday, October 23, 2018 2:56 PM

All replies

  • It  can be done with the "Shell" object.  Search for examples.


    Tuesday, October 23, 2018 2:59 PM
  • I've done quite some amount of searching, and didn't find any example that works in that particular context

    For instance, this returns $null

    $shell = New-Object -ComObject 'Shell.Application'
    # get Folder object for C:\
    $c = $shell.NameSpace("c:\")
    # get Folder for "This PC"
    $pc = $c.ParentFolder
    # try to get Folder for phone root

    Wednesday, October 24, 2018 12:17 PM
  • Can anyone help me with (a link to) an actual code snippet?

    Monday, November 19, 2018 1:24 PM