Questions

Copy files from a folder to different folders

+
0 Votes
Locked

Copy files from a folder to different folders

Lula.mesfin
Hello all!

I have a bunch of files FTP to my server daily. The files saved under this directory \\servername\inetpub\ftproot\reports\EOD\ .Each day it created a new folder with file name DEtodaysdate and dump all the files in the folder. These files have very long name, and I need to distribute it to different department.
Example Today's files dump to this folder
\\servername\inetpub\ftproot\reports\EOD\DE080627
File names?
1. AP0250R_10800626_QPRTJOB_AVCDOD26_118586_0000004926.PDF
2. AP0250R_10800626_QPRTJOB_AVCDOD26_118586_0000004927.PDF
3. AR0250RA_10800626_QPRTJOB_AVCDOD26_118586_0000004928.PDF
4. TE0250R_10800626_QPRTJOB_AVCDOD26_118586_0000004929.PDF
5. IV0250RA_10800626_QPRTJOB_AVCDOD26_118586_0000004926.PDF
6. MA0250R_10800626_QPRTJOB_AVCDOD26_118586_0000004926.PDF
Etc?
My question is I need a batch file that can go to the daily folder and select some files and move it to a new folder.
E.g. files 1 and two to folder Accounting
files 3 and 4 to folder invoicing etc?
I have no experience in programming, I will appreciate if anyone care throw me a simple batch file.