Copy files in the "Last Date Modified" sequence


  1. Posts : 284
    Ten
       #1

    Copy files in the "Last Date Modified" sequence


    So I want to copy files from my PC to Android phone in the "Last Date Modified" sequence.

    That is, the file in that folder was modified the first should get copied first.
    Then the file that was modified second, should get copied second.

    Is there any way to do this? Like with a tool or something?
      My Computer


  2. Posts : 226
    Many
       #2

    You could do it with powershell like this.

    Code:
    $items = (Get-ChildItem -Path "Rootfilepath" -Recurse | Sort LastWriteTime)
    foreach($item in $items)
    {
        Copy-Item $item.FullName -Destination "Directory you want to copy to"
    }
      My Computer


  3. Posts : 284
    Ten
    Thread Starter
       #3

    Neemobeer said:
    You could do it with powershell like this.

    Code:
    $items = (Get-ChildItem -Path "Rootfilepath" -Recurse | Sort LastWriteTime)
    foreach($item in $items)
    {
        Copy-Item $item.FullName -Destination "Directory you want to copy to"
    }
    What directory should I put?
    The phone doesn't get a drive name because it's mounted in MTP mode.
      My Computer


  4. Posts : 284
    Ten
    Thread Starter
       #4

    lolcocks said:
    What directory should I put?
    The phone doesn't get a drive name because it's mounted in MTP mode.
    Bump.
      My Computer


  5. Posts : 226
    Many
       #5

    Yeah that is a problem. I guess you would need something like http://www.mtpdrive.com/
      My Computer


  6. Posts : 284
    Ten
    Thread Starter
       #6

    Neemobeer said:
    Yeah that is a problem. I guess you would need something like http://www.mtpdrive.com/
    Any other free alternatives?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:50.
Find Us




Windows 10 Forums