3

I'm attempting to use robocopy to move files older than 5 years to another server, to reduce the size of a 3TB volume under 2TB so that the machine can be P2V'ed using Microsoft VM Converter.

There are actually 3 identical servers (3 offices for the same company), and this command has worked fine on 2 out of the 3. But when run on one server in particular, the output is The filename, directory name, or volume label syntax is incorrect

There are plenty of search results for this error on Google, but they all seem to deal with copying from/to network shares (either mapped or UNC). The output I'm getting indicates that robocopy is finding an issue with the local folder, which is concerning (and not in any search results).

Full input/output included below, but are there any suggestions for things I might be doing wrong, before I turn to CHKDSK? A full scan could take days and would slow access for all users, so I'd prefer to avoid it.

(Note: HP ACU says no disk/volume problems, and the disk does not otherwise indicate any error)

Input

robocopy D:\Local\Folder X: /e /z copy:DATSO /move /minlad:1800 /log:D:\robocopy.log /tee

Output

2016/01/10 20:32:23 ERROR 123 (0x0000007B) Scanning Source Directory D:\Local\Folder
The filename, directory name, or volume label syntax is incorrect.
Waiting 30 seconds...

2 Answers 2

2

Try adding the /NOCOPY flag to your copy command (see robocopy documentation). This will tell Robocopy not to try to read any extended attributes or alternate streams for folders.

Faling this, use PROCMON from Sysinternals and filter process robocopy.exe - this will give you more low-level diagnostics to explain what failed.

1
  • 1
    Good advice KeyszerS. procmon.exe revealed the interaction of ESET (installed on the server), blocking the file locks. Disabled and it runs fine now. Cheers
    – sm_biz
    Jan 10, 2016 at 14:04
2

You are missing a slash "/" before copy:DATSO. I had the same error message and entering the command correctly fixed the problem.

1
  • 1
    This answered it for me. I used the command robocopy src dst /MIR MT:16, missing the slash before the MT parameter. Oct 7, 2022 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .