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.

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

2 Answers 2

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 Stackoverflow.com instead to get help with an alternative solution.

share|improve this answer

Your Answer

 
discard

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.