Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.