enter image description hereI have a folder which has a bunch of files named: WBF123456, WBF135464, etc. These files need to be moved to the corresponding folder. At the moment I am using the commandline to manually enter the numbers of each file so they get moved, using this code:
$files = $args[0]
mv O:\SCAN\SecSur\*$files.pdf O:\SPG\G*\*\*$files
How can I automate this process? It needs to identify the number in the filename, then move it to the folder containing the same number. Any help would be great. Thanks.
I need to get the files on the left, inside the corresponding folders on the right.

