Parameter of batch file about copying file with date format YYYYMMDD - TechRepublic
Question
July 10, 2009 at 09:38 AM
man_simon

Parameter of batch file about copying file with date format YYYYMMDD

by man_simon . Updated 17 years ago

Dear All,

I have difficulty about copy file from one location to another by using xcopy or robocopy.
Below my case

Source files that with current date format specified, i.e abc-yyyymmdd.txt:
c:\abc-20090708.txt
c:\abc-20090709.txt
c:\abc-20090710.txt

Let’s say current date is 11/07/2009, if i want to copy previous date created file(abc-20090710.txt) to another location, how can i set/define the related parameter? It is possible to use robocopy or xcopy?

i has searched online for a long time. Hope someone can help me.

Many Thanks x 1000000

This discussion is locked

All Comments