Robocopy Command Not Working


  1. br4
    Posts : 110
    Windows 7 Ultimate x64
       #1

    Robocopy Command Not Working


    I've created a batch file to copy some of my files in a set order. This works OK with xcopy, but I can't get the commands to work with robocopy (which I think should be a better copy mechanism) and was hoping someone can help me correct it.

    Here's one of the lines that doesn't work:
    robocopy "S:\Audio\MP3 Albums - Rock\Pink Floyd - A Momentary Lapse Of Reason.mp3" "D:" /copyall

    I'm getting Error 123 referencing the source directory, which is correct in the above command.

    Any ideas how to correct?

    Also, and comments on robocopy vs xcopy?
      My Computer


  2. Posts : 3,787
    win 8 32 bit
       #2

    You just need d: remove "" marks
      My Computer


  3. br4
    Posts : 110
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Thanks for your reply, but that didn't work.

    This is probably important, though I didn't think so until I ran with your modification. I am copying from one hard drive to a FAT32 formatted SD card. When I attempted with your modification, I received this message: NTFS Security may not be copied - Destination may not be NTFS

    The card will be used in an MP3 player, so it cannot be formatted as NTFS.


    On a related topic, if I can hijack my own thread, after I copy a group of files (using xcopy with the /v option) from the hard drive to the SD card, many of the files do not show the length value in Windows Explorer (they all do on the hard drive), so I have to recopy them. Later, after copying other files, some of the earlier copied (and recopied) files will again not show the length values.

    The card is a SanDisk Ultra 64GB card. I've never had this issue with a Lexar 64GB flash drive or a different SanDisk 32GB flash drive.

    Any thoughts on this strangeness?
      My Computer


  4. Posts : 3,787
    win 8 32 bit
       #4

    File sizes wont be the same a file takes up so many sectors on some drives a sector can be 8 on others 16 so often the files may take up 2.5 but it has yo use 3 as its a block have you tried Utility Spotlight: Robocopy GUI it makes things simpler you can then copy the code if you running /copy all that copies security hence the error message
      My Computer


  5. br4
    Posts : 110
    Windows 7 Ultimate x64
    Thread Starter
       #5

    The file sizes show the same on both my hard drive and the flash drive, so that's not an issue for me.

    As previously noted, and I cannot understand how this can happen, after some of the files (over 400 total files, all MP3) are copied the flash drive in Windows Explorer show the filename, size, and date, but not the length. These files are not recognized by the MP3 player.

    I've been using xcopy but it it not 100% accurate for all the files. As noted, some times I have to recopy the files, some times once, other times many times. I was hoping the xcopy /v option would solve this, but no such luck.

    I want to have the files copied in a particular order, that's why I'm using the batch file with one line per file.

    Any suggestions to solve this? Any ideas why some of the files do not show the length in WE?
      My Computer


 

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

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