views:

119

answers:

0

Hi, I have about 600 files in a single directory and to meet the requirement of a cataloging application I use - the files need to be in separate folders named after them. For example:

filename1.jpg filename2.zip filename3.png ..............and so on...(files have various file exts - folders can have this info or not - doesn't matter if a DIR/b will be piped to MakeDir or such)

Sub Folders must be created as below: /filename1 /filename2 /filename3

Then each file (filename1.jpg, filename2.zip etc) should be moved to its corresponding subfolder.. move filename1.jpg to /filename1 move filename2.zip to /filename2 .... and so on

Is there an easy/simple way to do this with a DOS batch file? I appreciate all help given :) Thank You!!