Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Copy files using dos batch within a certain date/time range

Avatar of wigmeister
wigmeister asked on
Microsoft DOSWindows BatchVB Script
3 Comments1 Solution3496 ViewsLast Modified:
I need to copy files in a folder, say c:\attach\1, to another folder, d:\attach\1, using dos batch.  The complication here is that I only need to copy files within a certain time range.  This copy will run about 10 times a day, and I only need to copy any new files since the the last copy was done.  As an example, if the last copy was run at 4:00 PM on Monday, and the next copy is performed at 8:00 AM Tuesday, I need to retrieve any new files put in c:\attach\1 in that time span.

This will actually occur between two servers over a vpn connection and interfacing with foxpro programs.  I have all of that set up.  The last piece I need is to get this file copy in place.

I am trying to do this in dos since the rest of the interface between these servers is in dos, but would I be better off using vbscript, or another scripting language?  As you can tell I'm not very familiar with scripting and learning as I go.  Thanks for any help.