Folder Flatten & Segregate script - Has anyone...?
Posted: 28 Aug 2014 00:41
I need a script to do two things, starting in a given 'home' folder:
1) Flatten the home folder by finding all files in all folders beneath it and moving them to 'home'. I don't expect many collisions and would like auto-increment to handle that because I don't mind a few dupes. But if manual resolution is required that's OK. Then delete all the now-empty subfolders.
2) Segregate the files now in 'home' according to extension. All .ABC files will go in new auto-created subfolder 'home'\ABC. All .DEF into new folder 'home'\DEF. Some files won't be either and will stay in the 'home' folder.
Part 1 above may well have been done already since it would probably be useful to many people, but I couldn't find it. I did run across the following which will help a lot if I have to write this myself:
http://www.xyplorer.com/xyfc/viewtopic. ... der#p72610
Part 2 also may have been done but again I couldn't find anything.
--> If there are no scripts already made, any suggestions about what commands to use will be appreciated. I'm thinking that "moveto" using a list (created as in the example link) will be most likely to succeed.
I do realize that XY has some features that would facilitate doing all this manually on each folder. But I have many hundreds of folders to process and the mouse clicks really add up.
Thx
Papoulka
1) Flatten the home folder by finding all files in all folders beneath it and moving them to 'home'. I don't expect many collisions and would like auto-increment to handle that because I don't mind a few dupes. But if manual resolution is required that's OK. Then delete all the now-empty subfolders.
2) Segregate the files now in 'home' according to extension. All .ABC files will go in new auto-created subfolder 'home'\ABC. All .DEF into new folder 'home'\DEF. Some files won't be either and will stay in the 'home' folder.
Part 1 above may well have been done already since it would probably be useful to many people, but I couldn't find it. I did run across the following which will help a lot if I have to write this myself:
http://www.xyplorer.com/xyfc/viewtopic. ... der#p72610
Part 2 also may have been done but again I couldn't find anything.
--> If there are no scripts already made, any suggestions about what commands to use will be appreciated. I'm thinking that "moveto" using a list (created as in the example link) will be most likely to succeed.
I do realize that XY has some features that would facilitate doing all this manually on each folder. But I have many hundreds of folders to process and the mouse clicks really add up.
Thx
Papoulka