Server Fault is a question and answer site for system and network administrators. 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

Any example of windows xp dos script(.bat) that when run will iterate all subdirectories and list all files that have date updated since yesterday time?

share|improve this question
up vote 1 down vote accepted

This should get you pretty close to what you need. I pipe this to a txt file called dir.txt on my desktop.

@echo off

XCOPY * "%TEMP%" /H /L /S /Y /D:10-06-2011 >> "C:\Users\Greg\Desktop\dir.txt"

The /L switch is important because that tells you what files would be copied.

share|improve this answer
but i do not need to copy files. i only need to list the files since 10-06-2011 – user41999 Oct 10 '11 at 1:06
This won't copy files if you use the /L will only tell you what it would copy. – GregD Oct 10 '11 at 1:37

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.