Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: DOS Batch delete/copy  (Read 4042 times)

0 Members and 1 Guest are viewing this topic.

green_pirate

  • Guest
DOS Batch delete/copy
« on: July 07, 2004, 10:10:59 AM »
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!

PCgeek8080

  • Guest
Re: DOS Batch delete/copy
« Reply #1 on: July 16, 2004, 01:51:08 PM »
Use the Xcopy command.  :)