Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Am I going crazy? I'm trying to copy logfiles that were generated today:

xcopy i:\logs c:\logs /d:05-02-2012

It's copying zero files even though there should be some files modified today. What am I missing?

Windows Server 2008 and Windows XP Pro, PowerShell and DOS Command Prompt.

share|improve this question
That didn't work, but adding the /e flag seems to have worked! There is a directory structure beneath \logs which I forgot to mention :) – Don Zacharias May 2 '12 at 16:22
Have you verified that there are files from today? – aphoria May 2 '12 at 16:23
Don's problem was just that XCOPY was only working on the root directory (no subfolders) as it lacked a "/e" or "/s" switch, so it was indeed only copying log files generated today, but it was also only limited to the top level (which contained no log files). – Austin ''Danger'' Powers Mar 3 '13 at 0:14

You must log in to answer this question.

Browse other questions tagged .