Need a script to sort a load of files into directories

Associate
Joined
3 Oct 2008
Posts
1,890
Location
South London
Calling all scripting gurus, this is probably one small step for you but one giant leap for me.

I have a directory with a tonne of assorted files in there which I want to sort into subdirectories based on the filename.

I.E I'll create a subdir called "A" and I want the script to grab all the files beginning with 'a' and move them into the directory "A".
Rinse and repeat for B, C, D etc.

Ideally a batch script as I could probably handle modifying that to cater for all the new directories I create. VBS or similar I'd need a breakdown of how it works to know what to tweak and what to let be.

Thanks in advance!
 
Back
Top Bottom