Solved

Need script to copy files based on last-modified-date

Posted on 2008-10-26
1
1,011 Views
Last Modified: 2008-10-28
I need a script that will copy files from a folder based on modified date.  In other words, I would give it a date/time such as '2008-10-26 17:08' and it would copy all files in the folder I specify which were modified after that time.

I would prefer one that looks thru subfolders as well but that's not imperative.

I know that XCOPY allows selection based on date, but I need date and time

Thanks
0
Comment
Question by:bobgato111
1 Comment
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 125 total points
ID: 22821017
http://tek-tips.com/viewthread.cfm?qid=833148

http://www.rondebruin.nl/folder.htm

the third item on second link seems the best. It uses
If Fdate >= DateSerial(2006, 10, 1)

then modify to
If Fdate >= DateSerial(2008, 10, 26) + TimeSerial(17,07,00) then  ''ie 2008-10-26 17:08'
         FileInFromFolder.Copy ToPath
        End If

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

15 Experts available now in Live!

Get 1:1 Help Now