Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch file for moving files based on size  (Read 7236 times)

0 Members and 1 Guest are viewing this topic.

adam6806

    Topic Starter


    Starter
    • Experience: Beginner
    • OS: Windows 7
    Batch file for moving files based on size
    « on: December 11, 2011, 12:01:09 PM »
    Running windows 7 64 bit. I'm looking for a batch file to use with eventghost to look for movie files from tv shows from one directory and it's sub directories and place them in different directories based on size. So greater than 600 mb is a movies and less than is a tv show. There was a post on a similar topic but I never saw the finished product. As I don't know anything of the language of batch files I was hoping someone could help me out based on the other thread here http://www.computerhope.com/forum/index.php?topic=111060.0 Thanks sooo much in advance!!
    « Last Edit: December 11, 2011, 12:24:27 PM by adam6806 »

    Salmon Trout

    • Guest
    Re: Batch file for moving files based on size
    « Reply #1 on: December 11, 2011, 01:11:30 PM »
    Where are you going to move the files to? Will the batch script need to create new folders?


    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Batch file for moving files based on size
    « Reply #2 on: December 11, 2011, 02:02:19 PM »
    One of them has to be less than or equal or greater than or equal. So if the file is exactly 600MB is it a Movie or TV show?

    Salmon Trout

    • Guest
    Re: Batch file for moving files based on size
    « Reply #3 on: December 11, 2011, 02:18:26 PM »
    One of them has to be less than or equal or greater than or equal. So if the file is exactly 600MB is it a Movie or TV show?

    It could be a really really long TV show... I have a 54 minute Dexter episode that is 605 MB.

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Batch file for moving files based on size
    « Reply #4 on: December 11, 2011, 03:20:19 PM »
    I am not much of a Movie or TV buff but I am wondering if the files have meta tags like Music files do? If so is there a cmd line utility we could use to access that file info or could a VBscript access it. This is assuming that the meta tags tell you if it is a TV show or Movie.

    adam6806

      Topic Starter


      Starter
      • Experience: Beginner
      • OS: Windows 7
      Re: Batch file for moving files based on size
      « Reply #5 on: December 11, 2011, 05:39:29 PM »
      Where are you going to move the files to? Will the batch script need to create new folders?
      It will not be necessary to create folders. They should move to an existing movie or tv folder.

      It could be a really really long TV show... I have a 54 minute Dexter episode that is 605 MB.


      As far as size maybe equal to or less than 625 for TV shows and > for movies.
      I am not much of a Movie or TV buff but I am wondering if the files have meta tags like Music files do? If so is there a cmd line utility we could use to access that file info or could a VBscript access it. This is assuming that the meta tags tell you if it is a TV show or Movie.

      No idea on that one.

      Thanks for the response guys. :)

      adam6806

        Topic Starter


        Starter
        • Experience: Beginner
        • OS: Windows 7
        Re: Batch file for moving files based on size
        « Reply #6 on: December 12, 2011, 10:06:05 AM »
        Well thanks for responding everyone but I found an awesome program perfectly suited for the task. http://lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc Thanks again!

        Quantos



          Guru
        • Veni, Vidi, Vici
        • Thanked: 170
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Guru
        • OS: Linux variant
        Re: Batch file for moving files based on size
        « Reply #7 on: December 12, 2011, 10:16:02 AM »
        Does Task Scheduler not do what you need?
        I'm just curious.
        Evil is an exact science.

        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Batch file for moving files based on size
        « Reply #8 on: December 12, 2011, 10:42:37 AM »
        Well thanks for responding everyone but I found an awesome program perfectly suited for the task. http://lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc Thanks again!
        Ah yes I do remember seeing a thread about that software on another forum I frequent many moons ago.  There are a few other programs that do that as well.

        adam6806

          Topic Starter


          Starter
          • Experience: Beginner
          • OS: Windows 7
          Re: Batch file for moving files based on size
          « Reply #9 on: December 12, 2011, 06:58:28 PM »
          Does Task Scheduler not do what you need?
          I'm just curious.

          Probably but the learning curve isn't as rough with the Belvedere for someone who has never used either.