- press Win + R and type in shell:sendto
- create a new textfile in this folder and copy & paste the following lines
@echo off cd /D "%~dp1" md "%~n1" move %1 "%~dp1%~n1"
- save it as folder.cmd (or whatever you wish as long as the extension is .cmd or .bat)
Explanation
- %1 » The normal parameter that represents your selected file
- cd » Change Directory - move to a specific Folder
- %~dp1 » Extracts the drive & path from %1
- md » Make Directory - Creates a new folder
- %~n1 » Extracts the filename from %1 without the extension
- move » Move a file from one folder to another
Source: batch parameters & batch commands