suppose there are a lot of files in a directory with the naming structure like
kenny_001.jpg
kenny_002.jpg
kenny_003.jpg
....
tommy_001.jpg
tommy_002.jpg
tommy_003.jpg
....
mary_001.jpg
mary_002.jpg
mary_003.jpg
..
...
...
And I have to create separate folders for files starting with kenny, mary, and tommy
like so that they are arranged in a better way
without creating kenny , mary and tommy's folder one by one, because I don't get three folder only. I actually get 3000 or more e.g. kenny, mary, tommy, louis, peter, jerry..... up to 3000 names. and I don't want to create 3000 folders it will take many hassle
Any way to automate the process of creating the folders and moving the corresponding files into corresponding folders?? i.e.g all files starting with name kenny will be moved to kenny's folder and that of mary will be moved to mary's folder
-
Sure, you could write a small script to do the work for you. An example pseudocode:
Code:For each file: Get the name substring from file name (Kenny, etc) by taking characters from the first to the last one before "_". If that folder doesn't exist, create it. Copy file from current folder to new folder
Last edited: Mar 14, 2017HTWingNut likes this. -
-
.
-
Text2Folders is one free option for creating folders. One of the options in this link might help with the organization.
Did you try googling " folder creation program" or " file organization software"?
anyway to automate the process of creating a lot of folders?
Discussion in 'Windows OS and Software' started by kenny1999, Mar 13, 2017.