I have some files and I wanted to know if there is any way that I can use for creating the floder for each of the file and can move the files to the floder. I want it in this format the file name should be obtained from the filename minus its extension.

Example – If the folder name is filename1 and I want the file to be named as filename.avi that should created automatically and the file should placed in that specific floder.
I want some help in creating a simple script file so that it can do this job. Thanks in advance.