Batch file to copy files based on characters in filename
===

I need a batch file to copy files from a single folder to multiple folders, based on filename.   The files are of the form aBBccccc.txt where a and ccccc do not matter, but BB are 2 character codes. For example files aQWertyu.txt aWErtyui.txt should be copied to folders QW and WE respectively, and these folders will be created by the script.

I've seen example scripts using the FOR /f, but cannot see how to parse the file, examine characters 2 and 3, then create the folder, and copy the files.

Thanks. 