Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy files by date range?

Status
Not open for further replies.

eithk99999

Technical User
May 20, 2008
1
US
I need a VBScript that copies files from a network share to an alternate network share based on strict date ranges i.e. October 16th to January 16th (regardless of year).

The script needs to run silently and automatically (I can use the built in scheduler to to make it run.

Right now I have a simply xcopy script that copies all files in the source folder to the new folder (both folders must keep the same name). Between each running of the script the destination folder is emptied (and the source folder keeps being added to) so I cannot just copy everything as only the required date range can be used in the destination folder.

Anyone have anything that might help.

p.s. I did find this but was unable to download it as it is no longer available.

All help very much appreciated as I am VB newbie
 
Will xcopy /D not do what you need?
xcopy /?


"We must fall back upon the old axiom that when all other contingencies fail, whatever remains, however improbable, must be the truth." - Sherlock Holmes

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top