vendredi 27 février 2015

Batch File to rename multiple files and move to folder

I need help with batch file that can rename and move files from my c:\SaveAttachments to multiple folders in C:\Users\Omer\Documents\


I have about 5000 files in c:\SaveAttachments (.pdf, .doc, .xls)


e.g (aacom_880072_4860914.pdf or .doc or .xls) e.g (bbcom_880082_4860914.pdf or .doc or .xls)


rename aacom_880072_4860914 to 880072 and move it to C:\Users\Omer\Documents\aacom


rename bbcom_880082_4860914 to 880082 and move it to C:\Users\Omer\Documents\bbcom


Help on this is greatly appreciated. I hope I have provided sufficient information to see if this is feasible. Thank you.


FYI I am beginner in coding batch files so comments on the code are greatly appreciated.


Aucun commentaire:

Enregistrer un commentaire