954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Bat file to move files onto a created subdirectory

Bat file to move files onto a created subdirectory
Hi, I have a folder with video files, and I want to put each one into its own folder, like this:

Current:

c:\videos\movie1.avi
c:\videos\movie2.mpg

To:


c:\videos\movie1\movie1.avi
c:\videos\movie2\movie2.mpg

I.E. I want to create a subdirectory with the same filename (minus extension), and then move that file into that new folder.

eschreibman
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
 

So what have you done so far?

Try this at the command prompt
for /?


The perhaps if /? mkdir /?

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You