Solved

Batch file to copy files with date stamp ?

Posted on 2008-06-10
2
1,764 Views
Last Modified: 2011-09-20
Hello Gurus,
I need a batch file to copy files according to their creation date.
I am backing up files and I need to copy only the newest files to a DVD instead of all backups .
thanks
0
Comment
Question by:ammounpierre
2 Comments
 
LVL 6

Accepted Solution

by:
DaMaestro earned 250 total points
ID: 21757283
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 250 total points
ID: 21782868
As can xcopy

xcopy /d:(date) C:\source\*.bkf d:\

 /D:m-d-y     Copies files changed on or after the specified date.
              If no date is given, copies only those files whose
              source time is newer than the destination time.

You could also use the archive bit to identify files that hadn't already been backed up and use that to do it, have a look at the /a and /m switches for xcopy.

Steve
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

The question has been asked on multiple occasions as to how best to do printing in a remote desktop or terminal services environment.   It seems that this particular question has plagued several people and most especially as Terminal Services, as…
Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now