2012-01-23, 04:49 PM
Hi!
Because here some experts in creating batchfiles for different tasks i thought i start my question here, instead messing around.
Q: What do i want?
A: I have a huge mediaarchive. The mediaarchive contains different files in subfolders, but not like as npvr do it with recordings.
The goal i want to reach is the following:
I need a batch file that does:
- read the filename of any file within a subfolder
- make a dir with the name of the readed filename
- move the file into the new created dir
It would be nice, if the batch could move the coverart for the movie too (.jpg) into the new folder.
Q: Why do i want to change this?
A: Oh well, this is easy explained. A lot of movies are trilogies or even quadrologies. So i have in the sorting order first trilogies oder quadrologies and then the solo movies. This isn't an alphabetical order and it's not nice if you're searching something.
Q: Why just don't ding this manual?
A: It's no fun with 100+ files ... and lesser fun doing this with 1.000+ files
Thanks in advance for any "ready-to-use" solution or just a few sample lines.
Because here some experts in creating batchfiles for different tasks i thought i start my question here, instead messing around.
Q: What do i want?
A: I have a huge mediaarchive. The mediaarchive contains different files in subfolders, but not like as npvr do it with recordings.
Code:
\medien\Videos\Filme\Spielfilm\FSK 00\alf.mkv
\medien\Videos\Filme\Spielfilm\FSK 00\das dschungelbuch.mkv
\medien\Videos\Filme\Spielfilm\FSK 06\banana joe.mkv
(...)
The goal i want to reach is the following:
Code:
\medien\Videos\Filme\Spielfilm\FSK 00\[B]alf[/B]\alf.mkv
\medien\Videos\Filme\Spielfilm\FSK 00\[B]das dschungelbuch[/B]\das dschungelbuch.mkv
\medien\Videos\Filme\Spielfilm\FSK 06\[B]banana joe[/B]\banana joe.mkv
I need a batch file that does:
- read the filename of any file within a subfolder
- make a dir with the name of the readed filename
- move the file into the new created dir
It would be nice, if the batch could move the coverart for the movie too (.jpg) into the new folder.
Q: Why do i want to change this?
A: Oh well, this is easy explained. A lot of movies are trilogies or even quadrologies. So i have in the sorting order first trilogies oder quadrologies and then the solo movies. This isn't an alphabetical order and it's not nice if you're searching something.
Q: Why just don't ding this manual?
A: It's no fun with 100+ files ... and lesser fun doing this with 1.000+ files
Thanks in advance for any "ready-to-use" solution or just a few sample lines.
You like nPVR? Then please help pay the bills, and keep the project alive!
My happy NextPVR family
Frei nach Dieter Nuhr: Wenn man keine Ahnung hat, einfach mal die Fresse halten.
My happy NextPVR family
Frei nach Dieter Nuhr: Wenn man keine Ahnung hat, einfach mal die Fresse halten.