I am bit of a batch file noob, so I'd really appreciate your help. I have a ton of files stored in a single directory which I wish to sort into subfolders based on the first word in their filenames. So, I have files like these:
C:\Folder\ABC-001
C:\Folder\ABC-002
C:\Folder\EFG-001
C:\Folder\HIJ-002
And I wish to move all files to subfolders based on the first word, ending up like this:
C:\Folder\ABC\ABC-001
C:\Folder\ABC\ABC-002
C:\Folder\EFG\EFG-001
C:\Folder\HIJ\HIJ-002
Please help me get out here. Thank a lot !