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

Author Topic: How to create folders based on "PARTS" of file names and put them in there.  (Read 9993 times)

0 Members and 1 Guest are viewing this topic.

donnerschlag

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Windows 10
    So, i'm not a computer engineer. just a regular man without knowledge in computer. I downloaded a torrent full of comic books, around 5000 of them, my problem is that, want to segregate them by author. the author was included in the file name with braket enclosure ( e.g. [Asamine Tel] ) but it takes too much time to make folders myself and move them all to those folders.

    here are some examples of the file names:
    [Aramaki Echizen] Active ❤ Passive
    [Araiguma] Loss of Innocence (COMIC #70)
    [Asamine Tel] Twin Healing
     
    i tried searching for solutions online and i saw someone use batch files.. But i'm not knowledgeable in computer field. can someone help me please?

    Gizmo



      Rookie

      Thanked: 12
      • Experience: Experienced
      • OS: Windows 10
      Hi, my dad had a similar problem to yours, he too is not computer savvy.
      He would get several episodes of different series, and want to put them in individual series folders, but he was not very good with cut & paste.
      I looked around for a solution for quite a while until I came across this program, which is truly brilliant at automatically sorting files once you set up some associations - sounds harder than it is, the interface is very user friendly.

      The program is called DropIt, it is open source and completely free, and has a portable version as well so you don't need to install it.

      The main page for it is here - http://www.dropitproject.com

      I have attached 3 pictures: Making an association for[Aramaki Echizen]; Dropping a file onto the drop target; The progress complete window.
      I don't know if your files are .pdf, .epub, or something else so I used .pdf as an example.

      To move any file with[Aramaki Echizen] in the file name, you need to use the star * symbol in the rule.
      The * means any amount or type of letters or symbols before (or after, depending where the * is) that point.
      So the name [Aramaki Echizen] could appear anywhere in the file name - at the beginning, part way along or at the end.
      Because you have used the * character in the rule, it basically ignores everything else apart from the [Aramaki Echizen] text.
      The program then identifies the file as being "that author" and moves it to the folder you chose in the association.

      Have a quick read of this page:
      http://www.dropitproject.com/dokuwiki/doku.php?id=howto:start_with_dropit

      If you want some help setting up the associations, reply here and I will help you along.

      donnerschlag

        Topic Starter


        Starter

        • Experience: Beginner
        • OS: Windows 10
        Thanks for responding my guy. I just have one question. Will this process create its own folder automatically or just transfer the files to the folder with some parts of it's name but you need to make the folder yourself?

        Gizmo



          Rookie

          Thanked: 12
          • Experience: Experienced
          • OS: Windows 10
          Sorry for delay replying, was away from PC.

          I read through the examples on how to move files and create directories, tried 5 or 6 variations, but the solution was the most obvious one, just put the name you want at the end of the path and it will make the folder for you.

          Have attached pic

          I tested it out: on the first run it had to make the folder and then move the file =ok
          I then manually put the file back where it was, but I did not delete the folder it just made
          Ran it again, the file was moved into the folder with no fuss =ok

          So now, to add the the associations for the other authors, in the Manage Associations window you can right click on the first one in the list, and click on Duplicate. Double click on it to edit it, now copy and paste the next authors name into boxes 1,2 and 4, then click Save.

          I like to keep any utilities like this visible in the system tray - right click on the taskbar, click Taskbar settings, click Select which icons appear on the taskbar, make sure DropIt is turned on.

          donnerschlag

            Topic Starter


            Starter

            • Experience: Beginner
            • OS: Windows 10
            i appreciate the help, but i think it's not quite the one im looking for. since in this app, you'll be manually putting the name of the folder. what i'm looking for is the one that automatically create a folder, and also name it automatically according to the parts of the name of the file, then put all those files inside the folder. i got 500 authors here so i will need to do your process 500 times, which is still inconvenient.

            Gizmo



              Rookie

              Thanked: 12
              • Experience: Experienced
              • OS: Windows 10
              I found a program called File Juggler, I have uploaded a video to YouTube on how I used it:
              https://www.youtube.com/watch?v=OVTWxVaStyU

              File Juggler has a feature in it where you can use a list that can be compared against file names, and then do actions on them.
              it's a 30 day demo, but on their website it says "After 30 days become a little annoying and start telling you that you should buy it, if you want to keep using it. But it won't stop working at any point, and is not limited in features.

              Here is a link to download the small utility called Directory List & Print that I used at the start of the video:
              https://drive.google.com/file/d/1gAl4yJ8Rz-Wb8H2G90cgljTfTWwax1zY/view?usp=sharing

              Squashman



                Specialist
              • Thanked: 134
              • Experience: Experienced
              • OS: Other
              Roughly something like this.
              Untested
              Code: [Select]
              @echo off
              FOR %%G IN (*.tor) DO (
              FOR /F "TOKENS=1 delims=[]" %%H IN ("%%G") DO (
              MD "%%H"
              move "%%G" "%%H\"
              )
              )