Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am very new when it comes to batch files and I need to copy some files from a directory to another on a windows 2003 server.
I have writeen a simple batch file which looks like this:@echo
SET newDir=D: est
COPY "D:New_Files*.dat" "D: est*.dat"
rem dir c:windows
This is all work, bt the problem I am having is that I only need to copy across files whose date is in the past, i.e.:
The list of files is this
Today is the 15th December 2009 and the file for today would like *20091215.dat. I need to copy all and only the files whose date is prior to today, so I should just move the below files:
I have searched high and low on the web and could not find anything: can you please advise on a solution or anywhere where I can find a way to do it?
0 · ·