I am not a programmer, but needed to perform some simple move and copy functions to manage our EDI files. In one step, multiple incoming Purchase Order files are batched into one file, say inbound.edi, which is sent to our ERP system for processing. Since this file will be overwritten the next time we pick up new files, I would like to copy the file to a backup directory. Obviously, I can't keep a copy of each unless their filename is somehow changed or appended incrementally. Is there a command to increment the file name during a copy so each copy is uniquely named in the new directory? (Similar to date-time stamp question, but does not necessarily have to be date-time stamp - could just be sequential numbering).
THANK YOU! - Brian