How can i copy files from phone without changing timestaps

vishnu sai akhil gadi 0 Reputation points
2025-01-10T05:55:29.83+00:00

I want to copy my jepg file and files from my phone to laptop, i tried using robocopy but failed show that the source path doesn't exists, help me with it, how can i copy files from phone to laptop without change the time staps

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,526 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 35,141 Reputation points
    2025-01-10T14:57:50.81+00:00

    As I commented to your other question, you would need 3rd party software in order to make your phone "look like" a drive and be accessible from a command prompt in order to use robocopy.

    I connected my Android phone to my laptop via a USB cable and used the Windows Explorer to copy the files to my C: drive. (Using MTP transfer.)

    I see that the Created time is set to the TOD when I did the copy, but Modified time is still set to when the photo was taken.

    Is that what you see?

    Is it just the Created time that you wish to preserve?

    User's image

    If you just want to have the Created time match the Modified time, you can run this Powershell script to update it.

    Copy and paste it into Powershell_ISE and run it against a test folder that has a small number of photos in it.

    $Folder = "C:\temp\test"       #  put your folder name here
    "Current timestamps"
    Get-ChildItem $Folder -Filter *.jpg | ft -Property Name, CreationTime, LastWriteTime
    Get-ChildItem $Folder -Filter *.jpg | foreach { 
        $_.CreationTime = $_.LastWriteTime                 # set the timestamps to match 
    }
    "New timestamps"
    Get-ChildItem $Folder -Filter *.jpg | ft -Property Name, CreationTime, LastWriteTime
    
    
    

    It should look like this.

    User's image

    1 person found this answer helpful.
    0 comments No comments

  2. Daisy Zhou 28,316 Reputation points Microsoft Vendor
    2025-01-13T08:33:44.4066667+00:00

    Hello

    Thank you for posting in Q&A forum.

    To copy JPG files from your phone to a Windows 11 PC without changing the timestamps, you can try the following methods:

    1. Use a ZIP Archive:

    • On your phone, use a file manager app to create a ZIP archive of the JPG files.

    • Transfer the ZIP file to your PC.

    • Extract the files on your PC. This method preserves the original timestamps

    1. Use Robocopy:

    • Connect your phone to your PC.

    • Open Command Prompt as an administrator.

    • Use the following command to copy the files while preserving timestamps:

    • robocopy "source_path" "destination_path" /DCOPY:T /COPY:T

    Replace source_path with the path to your phone's JPG files and destination_path with the path on your PC where you want to copy the files

    1. Use Third-Party Software

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.