|Ok, good. Are these 6 digits prefix unique? Or is there any possiblity of duplication with different "ABC Company" suffix? If they're unique, it makes things simpler. Here's a trial-balloon, but it's untested, it's late, i'm ready to sleep, etc:|
@echo off & setlocal enabledelayedexpansion
for %%a in (*.pdf) do (
for /D %%b in (!z!*) do echo move %%a %%b\
:: === end
it doesn't move the files, because I don't want bad things to happen. See what you think from the output.