Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy Command Not Working

10 May 2017   #1
br4

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.
10 May 2017   #2
samuria

win 8 32 bit
 
 

You just need d: remove "" marks
My System SpecsSystem Spec
10 May 2017   #3
br4

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.

10 May 2017   #4
samuria

win 8 32 bit
 
 

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 System SpecsSystem Spec
10 May 2017   #5
br4

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
Reply

 Robocopy Command Not Working




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
What robocopy command copy all folders and files with original dates
I want to copy the contents of pen drive to E drive. The pendrive drive is F. Now i want all the folders and files to have the same date it was as in the pen drive, when i stored . Normally when i copy, all the files retain original date but folders get todate. Meaning less if date...
General Discussion
robocopy script is not working through Scheduler
Dear All, My batch file of robocopy is working fine. But when I tried to run it through task scheduler, none of the files transfer to the target location. @echo off echo +-----------------------------------------+ echo Database Export Utility for server ...
General Discussion
Robocopy /MOV command copying but not deleting from source directory
Hi All, I have one folder A and have another folder B in the same drive E: I need to move all the content from folder A which are more than 2 years old to folder B. Hence when I ran the robocopy it just copied and I lost all disk space in drive E. My question is even though I used /MOV...
General Discussion
CD command not working.
Hi all Don't know wether it's me doing something wrong or if something has broke. Whenever I want to navigate to another drive it won't actually change path. I am able to navigate to another folder within the C: drive, for example C:\Windows, but not to other drives.. Included a picture. ...
General Discussion


Our Sites

Site Links

About Us

Find 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 06:30.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App