vendredi 10 juillet 2020

Copy random files by 5 each to different folder

hipeople. Well, I'm not sure if I've come to the right place to ask such question. but lets see.

I've already asked this question at the total commander forum. so I just copypaste it to here.

"Hi, people. I have a big list of files, that I was able to make in a random order (with a custom column "random number"). (I even made the list of these files in a txt list file for some reason).

But now I need to put them into.. lets see....740 files divide by 5... into 148 new folders ok, I can make new 148 folders with an extDir utiity

but

how can I copy each 5 files into a one of a 148 folders separately so the 1-5 files go to the dir1 the 6-10 files go to dir2 11-15 to dir3 etc

(and yes, I tried to do it manually.. but got lost..also I need to repeat the operation with different files about ten times...) Thank you very much:)"

PS I tried to use python for this ( btw I'm a very beginning programmer so... All I have is the text file of all files in the folder

now I separate it into "modules" by 5 files and copy each one into different ascending folders Thank YOu:)




Aucun commentaire:

Enregistrer un commentaire