2

XCOPY /d is documented to take a date in the form dd-mm-yyyy but I can't find any mention of similar support for time.

Is there (or a workaround even) or do I have to download another command line tool for winxp?

citronic
  • 9,868
  • 14
  • 51
  • 74
  • btw I know about the win xp download packs that provide other tools such as forfile. I would prefer a solution that works with what comes in the xp box i.e. command extensions and nothing more. – citronic Dec 31 '11 at 16:25
  • 1
    I'd also like to know why 2 people think batch scripts are off topic... – citronic Jan 01 '12 at 02:58
  • with 'for /f' iteration through files and '%~ti' you can extract time creation and compare it to a given one to decide if file should be copied http://www.robvanderwoude.com/ntfor.php#FOR_F – npocmaka Aug 01 '12 at 21:52

1 Answers1

0

There's no way to include time as a criteria in XCOPY. This is true for ROBOCOPY as well, even though it has many more configuration options than XCOPY.

The XXCOPY application will do what you ask -- but as you say, this costs money (for commercial uses, anyway).

http://www.xxcopy.com/xxtb_001.htm - search for "/DA:".

Br.Bill
  • 637
  • 5
  • 12