1.

Solve : DOS Batch delete/copy?

Answer»

Newbie here, trying to figure out something while others are on vacation.  We have an hourly processes that generates a file every HOUR 24/7.  Daily, a directory is created, 20040707, and hourly files are created xyz1.dat, xyz2.dat, xyz3.dat... and so on.  We have a second PROCESS that WOULD send the last file created.  Is it possible to have a batch file to CHANGE all the extensions to *.old, this way only one *.dat file is available?  Secondly, if that is not possible, COULD I copy the last *.dat file created to another server, while deleting the previously copied *.dat?

Thanks!Use the Xcopy command.



Discussion

No Comment Found