Hi Guys,
I'm new to this stuff.
I've got a list of films in a Folder Called Movies.
What Need to do is create a Sub-Folder for each film then copy the correct film to there own Sub-Folder.
for example:
A.avi moves to folder called A
B.avi moves to folder called B
C.avi moves to folder called C
and so ...........
Is this possible and if it is can someone help me please.
Thanks
Help Creating Batch file to create subfolder and move data.
Moderator: DosItHelp
-
- Posts: 2
- Joined: 01 Sep 2014 11:28
Re: Help Creating Batch file to create subfolder and move da
Create that Batch file in your "Movies" folder:
Regards
aGerman
Code: Select all
@echo off &setlocal
for /f "delims=" %%i in ('dir /a-d /b *.avi') do (
md "%%~ni"
move "%%i" "%%~ni\"
)
Regards
aGerman
-
- Posts: 2
- Joined: 01 Sep 2014 11:28
Re: Help Creating Batch file to create subfolder and move da
Thanks So much works a treat.
Cheers
Cheers