Windows 10: Robocopy not copying newer file

Discus and support Robocopy not copying newer file in Windows 10 Network and Sharing to solve the problem; I have a file in a OneDrive folder named bernie3_journal.txt. It has today's date which is 10/7. I'm trying to use robocopy to copy the file to my... Discussion in 'Windows 10 Network and Sharing' started by zBernie, Oct 8, 2020.

  1. zBernie Win User

    Robocopy not copying newer file


    I have a file in a OneDrive folder named bernie3_journal.txt. It has today's date which is 10/7. I'm trying to use robocopy to copy the file to my son's OneDrive folder as shown below. The bernie3_journal.txt file in my son's OneDrive folder has a date stamp of 8/5. I've tried several switches like /IF, but robocopy is still not copying the newer file to my son's one drive.


    What do I need to do so robocopy copies this newer file and replaces the older one?


    $Files = "bernie3_journal.txt MyDates.txt"

    $Source = "C:\Users\bernie\OneDrive\Documents\Notes"

    $Dest = "C:\Users\bernie\OneDrive\For Bernard from Dad"

    robocopy $Source $Dest $Files

    :)
     
    zBernie, Oct 8, 2020
    #1
  2. sba923 Win User
    sba923, Oct 8, 2020
    #2
  3. Copy files

    You can use the command line utility robocopy:

    robocopy c:\oldfiles d:\newfiles /mir

    It will only copy new files or files that ar newer than the version on the source directory.
     
    Ricardo Bohner, Oct 8, 2020
    #3
  4. temp02 Win User

    Robocopy not copying newer file

    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Oct 8, 2020
    #4
Thema:

Robocopy not copying newer file

Loading...
  1. Robocopy not copying newer file - Similar Threads - Robocopy copying newer

  2. Can Robocopy copy in batches of files?

    in Windows 10 Gaming
    Can Robocopy copy in batches of files?: Evening, I'm just after a bit of help, I have a folder on my PC which has a load of files from my Nikon Camera - for my current example 1700 at around 42GB, I usually copy these to an external SDD but I'm guessing due to the SSD the speed tends to drop off so I start around...
  3. Can Robocopy copy in batches of files?

    in Windows 10 Network and Sharing
    Can Robocopy copy in batches of files?: Evening, I'm just after a bit of help, I have a folder on my PC which has a load of files from my Nikon Camera - for my current example 1700 at around 42GB, I usually copy these to an external SDD but I'm guessing due to the SSD the speed tends to drop off so I start around...
  4. Robocopy - copy changed files only

    in Windows 10 Network and Sharing
    Robocopy - copy changed files only: Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy to the PC any files which changed after I took the Windows 7 backup on the 28th. I specifically do not want to copy any files...
  5. Robocopy - copy changed files only

    in Windows 10 Gaming
    Robocopy - copy changed files only: Hi, I have restored not recovered a PC from a Windows 7 backup taken 28th June. I have a Robocopy of the PC taken 30th June. I would like to now copy to the PC any files which changed after I took the Windows 7 backup on the 28th. I specifically do not want to copy any files...
  6. Robocopy - Copying Files without Content?!

    in Windows 10 Software and Apps
    Robocopy - Copying Files without Content?!: I use Robocopy frequently to copy large folder structures, recently I've found a situation where many files were copied, names, dates, sizes all match, but many are missing content. Some were .xml files so I can open those in Notepad and see the content is missing in the...
  7. Robocopy - Copying Files without Content?!

    in Windows 10 Gaming
    Robocopy - Copying Files without Content?!: I use Robocopy frequently to copy large folder structures, recently I've found a situation where many files were copied, names, dates, sizes all match, but many are missing content. Some were .xml files so I can open those in Notepad and see the content is missing in the...
  8. robocopy only copies a couple of files

    in Windows 10 Gaming
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....
  9. robocopy only copies a couple of files

    in Windows 10 Software and Apps
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....
  10. robocopy only copies a couple of files

    in Windows 10 Installation and Upgrade
    robocopy only copies a couple of files: Initially I'd like to simply copy updated or missing files from the source to the destination locally...make a backup basically. I created an empty directory "testfolder" on the destination. I've tried NTFS and FAT32 destination drives initially I thought FAT32 was the issue....