Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having trouble with robocopy. It won't copy from "X:\files\". It just kills the batch file without writing anything to log, but it WILL copy from "X:\files\other files". Where "other files" is just one of many folders inside "files". It is very strange. I want it to scan the whole directory and pull down files based on timestamp but it won't do it for the whole drive or just for that folder, only further specific folders. Note: X:\ is a net drive mapped ftp server drive and I am trying to download over VPN.


robocopy "X:\files\this album" "C:\downloads\Test" /s /maxage:1 /log:"C:\downloads\Test\log.txt"


robocopy "X:\files\" "C:\downloads\Test" /s /maxage:1 /log:"C:\downloads\Test\log.txt"

I don't get it. Any ideas?

share|improve this question

You need to remove the trailing slash, or the quotes, from the source path in your example. The command should be:

robocopy "X:\files" "C:\downloads\Test" /s /maxage:1 /log:"C:\downloads\Test\log.txt"

"If either the source or destination are a quoted long folder name do not include a trailing backslash as this will be treated as an escape character"

share|improve this answer
ahh! amazing. worked. now if only i could get that pesky maxage command to work... – user158080 Feb 8 '13 at 2:37
Your use /maxage:1 would exclude all files older than 1 day. – jscott Feb 8 '13 at 2:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.