Hi all,

I'm not sure if this is even possible but here goes.

I have a folder FULL of files.

On each filename, the first 6 digits contains a reference number

e.g.
123456_456_BE.jpg
123456_457_BE.jpg
123456_458_BE.jpg

For each file in the folder i want to create a folder with the name being the first 6 digits of the file (the reference).

so for the above i would end up with one folder named 123456 and that would have three files inside -
123456_456_BE.jpg
123456_457_BE.jpg
123456_458_BE.jpg

thanks in advance

Cj