Batch program to move files to separate folders

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
frater Offline
Fan
Posts: 305
Joined: Jan 2005
Reputation: 0
Post: #41
I have this bash-script written for my Western Digital Worldbook for this purpose.
http://pastebin.com/f6e6bc9ea

It needs this perl-script to do a lookup on IMDB
http://pastebin.com/f6c986c03

It runs as a 1-hour cronjob and scrapes a download directory for new video-files and tries to give them a proper name.
If it thinks it's a TV-show it will move the file to the "TV" directory

Code:
BASEDIR ------ AVI
               |
                --- TV -------- The.Tudors ---- The.Tudors.S01
               |              |                  |
               |              |                  --- The.Tudors.S02
               |              |                  |
               |              |                  --- The.Tudors.S03
               |              |
               |              --- The.Wire ------- The.Wire.S01 --- The.Wire.S01E01                                |
               |                                      --- The.Wire.S02
               |                                      |
               |                                      --- The.Wire.S03
               |                                      |
               |                                      --- The.Wire.S04
               |
               |
                --- MPG

Edit BASEDIR before running the script!

The version I'm currently using can be downloaded here
http://wd.mirmana.com/mvmovie

Another script which makes a DVD-ISO out of a DVD-structure is this one (needs cdrtools' mkisofs)
http://wd.mirmana.com/mkdvd
(This post was last modified: 2009-08-19 08:29 by frater.)
find quote
derekos Offline
Junior Member
Posts: 29
Joined: Dec 2009
Reputation: 0
Post: #42
Nmarconi, the links to your file no longer work - could you update them? Thanks!
find quote
JonL. Offline
Junior Member
Posts: 2
Joined: May 2010
Reputation: 0
Location: Lawrenceville, GA
Post: #43
I don't mean to resurrect an old thread, but I still get a few hits a day from this specific thread and thought I would be able to help.

I have converted my little file2folder script (linked earlier) to a VB application in an attempt to learn a little programming. You can find it at the Google Code site. It has several new features I think you will appreciate.

Thanks,

Jon
theHTPC.net
find quote
Post Reply