|I have a rather large movie collection. I am making a batch script to sort my movies.|
The way I need them sorted is a folder for each movie, and then those folders in #, A, B, C etc.
So for example F:\Movies\P\Pinocchio\Pinocchio.avi
I have worked out how I can create a folder for each file:
for %%a in (*.avi) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
(and do the same for each movie extension that I have (mkv, wma, etc).
Once the files are all in their folders, I can't work out how to sort the folders from the first letter -so all movies starting with A go to /A, all starting with B go to /B and so forth. All movies starting with numbers would go to /#...
I am looking for some help on how to do this.