Moving the 'My Documents' folder (and others) to a different hard disk

Page 7 of 10 FirstFirst ... 56789 ... LastLast

  1. Posts : 11,362
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #61

    Paul,

    We were posting at the same time. Just try a test without /mt at all and compare the log's header sections to see if the other switches made it through this time [it is currently rejecting everything after the failed /mt]

    It's a longshot but do another test for which you write the /mt bit instead of pasting it just in case a hidden character has somehow made its way into your notes.

    Losing /mt is not the end of the world but I am baffled.

    And my deteriorating 10 year old Dell Inspiron 1545 has now become a rapidly failing Dell Inspiron 1545 so I am a bit tied up with all the swearing required.

    Denis
      My Computer


  2. Posts : 16,004
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #62

    Try3 said:
    Try a test without /mt just to confirm that all the other options are shown in that header section correctly.

    Result . . .
    Code:
    -------------------------------------------------------------------------------
       ROBOCOPY     ::     Robust File Copy for Windows                              
    -------------------------------------------------------------------------------
    
      Started : Sat Jul 11 20:06:57 2020
    
       Source - C:\Users\System-Admin\Working Directory\Source Folder\
         Dest - F:\Target Folder\
    
        Files : 
      Options : /S /COPY:DAT /R:10 /W:30 
    
    ------------------------------------------------------------------------------
    
    ERROR : Invalid Parameter #5 : "/DCOPY:DAT"
    
           Simple Usage :: ROBOCOPY source destination /MIR
    
                 source :: Source Directory (drive:\path or \\server\share\path).
            destination :: Destination Dir  (drive:\path or \\server\share\path).
                   /MIR :: Mirror a complete directory tree.
    
        For more usage information run ROBOCOPY /?

    Try3 said:
    I assume that you have no other problems
    - reading from C:\Users\System-Admin\Working Directory\Batch\
    - writing to F:\Batch
    None.
      My Computer


  3. Posts : 16,004
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #63

    I am probably going to have to leave this until tomorrow now.
    Thanks for all your help on this Denis, it is very much appreciated.
      My Computer


  4. Posts : 13,934
    Windows 10 Pro X64 21H1 19043.1503
       #64

    I tried this just to see what happens.

    Code:
    RoboCopy ""C:\Users\ztruk\Desktop\SetupDiagLogs"" "F:\Target Folder" /S /R:10 /MT:1 /DCOPY:DAT /XA:SH /MIR > "%userprofile%\desktop\TestResults.Log"
    It works correctly for me, cut and pasted and the output is in TestResult.txt on my Desktop and the F:\Target Folder is there and has the right files in it.

    Code:
    C:\Users\ztruk>RoboCopy ""C:\Users\ztruk\Desktop\SetupDiagLogs"" "F:\Target Folder" /S /R:10 /MT:1 /DCOPY:DAT /XA:SH /MIR > "%userprofile%\desktop\TestResults.Log"
    
    C:\Users\ztruk>
      My Computers


  5. Posts : 11,362
    Windows 10 Home x64 Version 21H2 Build 19044.1706
       #65

    I really do not know what is causing this but I would not be surprised if it was a permissions issue with one of the folders.

    You can prove me wrong by repeating the test without /mt or /dcopy then compare the header sections again.

    Denis
      My Computer


  6. Posts : 7,456
    Windows 10 Home 20H2
       #66

    I ran the following and got no errors. Files have been copied correctly.

    Code:
    RoboCopy "C:\Source Folder" "F:\Target Folder" /S /R:10 /MT:1 /DCOPY:DAT /XA:SH /MIR > "%userprofile%\desktop\TestResults.Log"
      My Computer


  7. Posts : 16,004
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #67

    OK, I have discovered something very interesting.

    I have been testing this on my laptop which I only really use for the Internet, writing and testing scripts, and a very few other things.

    I ran ALL the scripts previously posted on my Desktop PC and they worked WITHOUT a problem, very strange! Running RoboCopy is the FIRST time that a script has NOT worked!

    As my Desktop PC is the computer that I want to run RoboCopy as a backup method and it works, I am happy. I would like it to produce a log as Denis suggested if possible rather than divert the output to a .txt file.

    I will however, investigate why there is a problem with it on my laptop. It does work on the laptop as long as I DON'T use the parameters . . .

    Code:
    /MT:1 /DCOPY:DAT
      My Computer


  8. Posts : 7,456
    Windows 10 Home 20H2
       #68

    Is it possible for Robocopy to give an advance warning if a certain number of files are to be deleted/overwritten?
      My Computer


  9. Posts : 1,867
    Windows 10 Pro 2004 20H1
       #69
      My Computer


  10. Posts : 7,456
    Windows 10 Home 20H2
       #70

    Unfortunately, I already read the guide before asking the question.
      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 07:15.
Find Us




Windows 10 Forums