Flood göndermek, insanların floodlarını okumak ve diğer insanlarla bağlantı kurmak için sosyal Floodlar ve Flood Yanıtları Motorumuza kaydolun.

Oturum aç

Flood göndermek, insanların floodlarını okumak ve diğer insanlarla bağlantı kurmak için sosyal Floodlar ve Flood Yanıtları Motorumuza giriş yapın.

Şifremi hatırlamıyorum

Şifreni mi unuttun? Lütfen e-mail adresinizi giriniz. Bir bağlantı alacaksınız ve e-posta yoluyla yeni bir şifre oluşturacaksınız.

3 ve kadim dostu 1 olan sj'yi rakamla giriniz. ( 31 )

Üzgünüz, Flood yazma yetkiniz yok, Flood girmek için giriş yapmalısınız.

Lütfen bu Floodun neden bildirilmesi gerektiğini düşündüğünüzü kısaca açıklayın.

Lütfen bu cevabın neden bildirilmesi gerektiğini kısaca açıklayın.

Please briefly explain why you feel this user should be reported.

Help: Merging content of many folders

I have 109GB of a total of 5447 pictures, that are in a total of 1260 folders. I want to merge them in a single folder, which I can’t to manually because of the size. The structure is Date\Subfolder\pictures, for example 2018-04-26\sub1\1.png. This means I can’t just put every picture in one folder, since they are all named 1.png – 10.png or 1.jpg – 10.jpg and they would overwrite each other.

So my question is, if there is a script that names all pictures according to their path (for example a picture called 6.png in C:\2019-05-30\sub1\6.png gets named “2019-05-30_sub1_6.png”), so I can merge them all in one folder without losing order of the date and without overwriting each other?

Edit: I have Windows 10

Edit 2: Solved

Benzer Yazılar

Yorum eklemek için giriş yapmalısınız.

14 Yorumları

  1. People here are listing linux tools, command line tools…

    Simple answer: voidtools everything

    Go to the folder with all the photos, then make everything search for images, select all and paste it into a seperate folder. There, done.

  2. Without any scripts, i would do explorer search for “*” and it shows 1260 folders and 5447 files. Then you select all the files then cut-paste. Done.

  3. Do this process in batches to prevent overwhelming windows explorer. Number the batches and go from beginning to end so the process is as efficient as possible.

  4. Having all one file in single folder is a mess… the loading file to load the folder is nightmare… please consider OP

  5. If you were using Linux, that’s very much part of the intended use cases of mergerfs. As you’re using Windows… rip.

  6. I think a python script of some sort will help you here

  7. Issues with too many files in a folder non withstanding, I’d do a search in the root directory for *.jpg, select all and use Tera copy to add -1 to redundant file names.

  8. You can use GNU findutils


    then perform the operation with

    find C:pathtoparentfolder -type f -exec cp ‘{}’ C:pathtosaveto ;

    Note that I’ve used the copy – `cp` – command. This will leave the original files in tact. You can also move them with `mv`.

  9. In windows, easily done with bulk rename utility.
    (9) append folder name as prefix, use separators and levels to meet your need
    (12) filter just uncheck folder and check subfolder
    (13) set location you want to move everything to and uncheck copy not move if you wish but another user says you should probably use copy and verify first.
    each number is the option setting when you open bulk rename utility

  10. Search *.* that will bring up all the files at once, then copy and paste to another folder, windows will prompt if you want to overwrite or rename.

    I’d back them up first, just in case.

  11. Before attempting any automatic renaming and the like I would really recommend you to make a copy of your current mess. This way you can verify afterwards if something was overwritten and roll back if necassary.

  12. You can use Powershell for automatic moving and renaming. Here are examples of such scripts – [https://stackoverflow.com/questions/16839787/powershell-move-item-rename-if-file-exists](https://stackoverflow.com/questions/16839787/powershell-move-item-rename-if-file-exists)

  13. Don’t merge them into one folder unless you have a very specific reason. Srsly.

    Most file systems will start to slow down once the number of items in a directory is greater than a certain number. 5000 is probably within the *capacity* of most modern file systems, but the number of pics is only going to grow. Even before you get close to that you’re going to see noticeable slowdowns unless you make special changes to the file system configuration. This Stack Overflow has good info; look at some of the comments further down for tests and informative links.


    My suggestion would be to rename the files in place with the naming scheme you like, or use a photo library manager that can handle renaming the pics when they’re exported.

  14. If you’re on Linux, check out the “mmv” tool. It lets you move files matching a pattern, and rename them using results of the pattern match.