I have a process that creates a numbered directory in the path "C:\CSIRP\Storage\". The number is generated automatically and is different each day. For example today's path is "C:\CSIRP\Storage\68". Inside that directory there are approximately 100 files. I need a batch file that will look at the root directory, "C:\CSIRP\Storage\", find the highest numbered subdirectory, today will be 66 tomorrow will be 67. Then once I find the correct directory, I need to copy 4 files to path "\\servername\sharename". The 4 files I need are ALWAYS named:
**CF0364, **DMCIF, **LMCIF, and **NMCIF
Where ** is the same as the number of the directory. The batch will be scheduled to run multiple times daily, so before it copies the files, it should check the "\\servername\sharename" path for the existance of the files, and abort if the files already exist (no need to copy them twice.)
Please help if you can.