I'm trying to xcopy from one pc to another both are XP. I created a batch file to do the xcopy and it works fine. However, I would like to limit this to include only files that have been created in the last 4 days.
This is what I have and it works.
xcopy "x:\" "e:\" /s /e /y /c /z
I need help creating a variable for %date%-4 and passing it into my xcopy /d switch.