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

I am using the below command to copy all modified file day wise

D:\ws\xcopy *.* /s /D:04-02-2013 D:\new

but now i want to copy files which are modified at particular time, any have any idea how to do it? Thanks in advance.

share|improve this question
Is Powershell acceptable? That is really the modern scripting engine for Windows Vista and up... – AthomSfere Apr 2 '13 at 11:11
In the future please do not post across multiple sites – slhck Apr 2 '13 at 12:10

FORFILES and ROBOCOPY allow a selection of files depending on the date with day accuracy. You have to specify the interval with a min and a max parameter.

This related blog entry might be helpful. It explains how to use FORFILES for copying files of the same day.

share|improve this answer

To my knowing there's no way of doing that only using xcopy. It takes only date, not time, as an argument.

Xcopy is a windows program, so you might want to ask this question at for example instead to get help with an alternative solution.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .