This is the script I have:
for %%j in (*) do (
move "%%j" "%%~nj"
I hope I have explained it well,
The scrip above work well to:
Move files into a folder with the same name, if there is not folder it will create it. It will also overwrite without warning.
However for me, I need it to ONLY look at the fist 5 letters, e.g.
A2383 - Test.txt
A2383 - Test.jpg
A2383 - Test small.mbs
All the above will be move to the same folder. I suppose the interesting part is if the folder does not exist, which one will it pick to make the folder.... hmmmm. Ideally I guess the folders should be there.