Windows 10: Robocopy hangs, dependant on working directory

Discus and support Robocopy hangs, dependant on working directory in Windows 10 Gaming to solve the problem; I'm running robocopy to mirror two folders and have come across a strange situation. I am using the /log switch and when the copy started, no log file... Discussion in 'Windows 10 Gaming' started by lb483, Jul 20, 2022.

  1. lb483 Win User

    Robocopy hangs, dependant on working directory


    I'm running robocopy to mirror two folders and have come across a strange situation. I am using the /log switch and when the copy started, no log file was being produced. Further investigation showed that the working directory where the log file was being written didn't have write permissions so I sorted that and re-ran the command. Still no log file. I tried the same command but without the /log switch and again the command hung with no output to the screen.I then changed to C:\Temp, re-ran the command and everything progressed without issue.Is there a permission requirement on the working

    :)
     
    lb483, Jul 20, 2022
    #1

  2. Backup and compare with robocopy not working

    You forgot to add the /NDL switch I noted previously. Without it, robocopy will list every blasted directory whether there are any differences or not. Add the /NDL and only file differences will be shown. Note that the full path for each file will still be shown. Also, missing and extra directories will still be shown. The /NDL will merely suppress the listing of every directory that is not relevant to actual differences.
     
    hsehestedt, Jul 20, 2022
    #2
  3. JGStrong Win User
    Windows 10 robocopy ERROR 1392 (0x00000570) file or directory is corrupted

    I keep all my personal and business data on a 2TB Passport external drive and back up key parts of it daily to two other external drives using robocopy. I've been doing this for years.

    Since I upgraded to Windows 10, however, I keep getting the error I mentioned above (in the subject line). Robocopy complains that some file or directory on the **destination** drive is unreadable, and sure enough, I am unable to delete the file. I've tried
    both File Assassin and File Unlocker. File Assassin complains that it cannot see the file. File Unlocker claims to delete it, but I still see it in Windows Explorer, even after rebooting. The only way to get rid of the file is to boot in safe mode and delete
    it.

    Problem is: this keeps reoccurring in different places in the filesystem !!!

    Relevant facts:

    * It occurs on *both* of my backup drives, which suggests to my mind that the problem is not with the backup device.

    * Again, it occurs with different files in different places. There's no detectable pattern as far as location.

    * CHKDSK reports no problems on any of my disks

    * SFC reports no problems on any of my filesystems

    For now, I've settled on the following work-around: I tell robocopy to ignore read errors:

    For EX: robocopy g:\data q:\data /mir /R:0 /W:0

    So now robocopy runs to completion instead of hanging, but it reports FAILURES.

    I am worried about my data and would appreciate guidance and suggestions.
     
    JGStrong, Jul 20, 2022
    #3
  4. Robocopy hangs, dependant on working directory

    Windows 10 robocopy ERROR 1392 (0x00000570) file or directory is corru


    I keep all my personal and business data on a 2TB Passport external drive and back up key parts of it daily to two other external drives using robocopy. I've been doing this for years.
    Since I upgraded to Windows 10, however, I keep getting the error I mentioned above (in the subject line). Robocopy complains that some file or directory on the **destination** drive is unreadable, and sure enough, I am unable to delete the file. I've tried both File Assassin and File Unlocker. File Assassin complains that it cannot see the file. File Unlocker claims to delete it, but I still see it in Windows Explorer, even after rebooting. The only way to get rid of the file is to boot in safe mode and delete it.
    Problem is: this keeps reoccurring in different places in the filesystem !!!
    Relevant facts:
    * It occurs on *both* of my backup drives, which suggests to my mind that the problem is not with the backup device.
    * Again, it occurs with different files in different places. There's no detectable pattern as far as location.
    * CHKDSK reports no problems on any of my disks
    * SFC reports no problems on any of my filesystems
    For now, I've settled on the following work-around: I tell robocopy to ignore read errors:
    For EX: robocopy g:\data q:\data /mir /R:0 /W:0
    So now robocopy runs to completion instead of hanging, but it reports FAILURES.
    I am worried about my data and would appreciate guidance and suggestions.
     
    pluviosilla, Jul 20, 2022
    #4
Thema:

Robocopy hangs, dependant on working directory

Loading...
  1. Robocopy hangs, dependant on working directory - Similar Threads - Robocopy hangs dependant

  2. Robocopy renames the target directory to the same directory once done running

    in Windows 10 Software and Apps
    Robocopy renames the target directory to the same directory once done running: Hi,Trying to copy all folders to another directory on same disk and partitionrobocopy c:\Users\bob\Document c\users\Bob\1-BobBackup /sthis runs when complete, the 1-BobBackup is renamed "Document" resulting in 2 "Document " folders making it confusing which is source and...
  3. Robocopy Hanging

    in Windows 10 Gaming
    Robocopy Hanging: I have a command file to do backup: Set LogFileName=F:\VBoxBackup_Purge_NP_%DATE:~-4%-%DATE:~-10,-8%-%DATE:~-7,-5%.log DATE /T >> %LogFileName% TIME /T >> %LogFileName% ROBOCOPY V:\VirtualBox\ F:\VirtualBox\ /DCOPY:T /E /NP /XO /LOG+:%LogFileName% /TEE /W:5 /R:1 /PURGE TIME...
  4. Robocopy Hanging

    in Windows 10 Software and Apps
    Robocopy Hanging: I have a command file to do backup: Set LogFileName=F:\VBoxBackup_Purge_NP_%DATE:~-4%-%DATE:~-10,-8%-%DATE:~-7,-5%.log DATE /T >> %LogFileName% TIME /T >> %LogFileName% ROBOCOPY V:\VirtualBox\ F:\VirtualBox\ /DCOPY:T /E /NP /XO /LOG+:%LogFileName% /TEE /W:5 /R:1 /PURGE TIME...
  5. Robocopy Hanging

    in Windows 10 Installation and Upgrade
    Robocopy Hanging: I have a command file to do backup: Set LogFileName=F:\VBoxBackup_Purge_NP_%DATE:~-4%-%DATE:~-10,-8%-%DATE:~-7,-5%.log DATE /T >> %LogFileName% TIME /T >> %LogFileName% ROBOCOPY V:\VirtualBox\ F:\VirtualBox\ /DCOPY:T /E /NP /XO /LOG+:%LogFileName% /TEE /W:5 /R:1 /PURGE TIME...
  6. Why robocopy only copy directories but not files?

    in Windows 10 Network and Sharing
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  7. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Network and Sharing
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  8. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Gaming
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  9. Robocopy automatically taking source directory as the script file directory

    in Windows 10 Software and Apps
    Robocopy automatically taking source directory as the script file directory: Synopsis:- Script file directory name -> PowerShellScripts in Desktop in local C:\...- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ a partition on local hard disk- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... F: is external SSD...
  10. Robocopy hangs, dependant on working directory

    in Windows 10 Software and Apps
    Robocopy hangs, dependant on working directory: I'm running robocopy to mirror two folders and have come across a strange situation. I am using the /log switch and when the copy started, no log file was being produced. Further investigation showed that the working directory where the log file was being written didn't have...