Solved

xcopy only the today files to another location

Posted on 2013-05-14
2
624 Views
Last Modified: 2013-05-14
1 of my servers dlt unit fails, i need  for a few days do the backup to another server,

i want to
xcopy d:\*.*  w:\  but only the files that are modified today in order to porcese a sheduled bath at night
is any way to achive this with a bat file?
tsm
edo
0
Comment
Question by:edo60
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Ken Butters earned 500 total points
ID: 39165740
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true

See /d switch:

/d[:mm-dd-yyyy] : Copies source files changed on or after the specified date only. If you do not include a mm-dd-yyyy value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update files that have changed.

For your example... changed on 5/14/2013 or later:

xcopy d:\*.*  w:\  /d:05-14-2013
0
 

Author Closing Comment

by:edo60
ID: 39165819
tsm

xcopy d:\  w:\  /s /a /D:5-14-2013
@pause
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Identify two keyboard codes and how to enter them 9 69
Adding a countdown to HTA 12 97
Assignment from incompatible pointer type? 2 36
Java List 4 35
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question