I have 5000 files in one folder
I will make 50 subfolder, one folder have 100 files.
XYplorer can do this?
how?
Thank you
Can split folder?
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Can split folder?
There should be a way in scripting towbnew wrote:I have 5000 files in one folder
I will make 50 subfolder, one folder have 100 files.
XYplorer can do this?
how?
Thank you
- select the top 50 [EDIT: should be 100, of course]
- move them to an autonamed-subfolder
After assigning a keyboard shortcut to it, it would mean 50 keystrokes for the job. Of course, once scripting gets loops it will be one keystroke...
Last edited by admin on 11 Apr 2008 15:50, edited 1 time in total.
FAQ | XY News RSS | XY Twitter
This seems to work pretty well, you have to answer a single prompt each time through (the recursive checker) and break out of the loop yourself, but that's not too bad.
Depending on how you want to separate the files you may need to change the second SortBy function.
Also, you can speed it up significantly by doing the following:
Turning off auto-sizing columns (View -> List View -> Autosize Columns)
Using a simple view (List and Small Icon work well)
Hiding the tree (Window -> Show Navigation Panel)
And making the window you're going to run this in as small as possible.
Depending on how you want to separate the files you may need to change the second SortBy function.
Code: Select all
"mover"
Setting(HideFoldersInList, 0);
//Create new folder (using suffix to avoid collision)
#231;
SortBy(Created, d);
Sel(1,1);
Set($d, <curitem>);
Setting(HideFoldersInList, 1);
SortBy(Name, a);
Sel(1,100);
Focus(List);
MoveTo($d);
Sub(mover);
Turning off auto-sizing columns (View -> List View -> Autosize Columns)
Using a simple view (List and Small Icon work well)
Hiding the tree (Window -> Show Navigation Panel)
And making the window you're going to run this in as small as possible.
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Not bad!TheQwerty wrote:This seems to work pretty well, you have to answer a single prompt each time through (the recursive checker) and break out of the loop yourself, but that's not too bad.
Depending on how you want to separate the files you may need to change the second SortBy function.
Also, you can speed it up significantly by doing the following:Code: Select all
"mover" Setting(HideFoldersInList, 0); //Create new folder (using suffix to avoid collision) #231; SortBy(Created, d); Sel(1,1); Set($d, <curitem>); Setting(HideFoldersInList, 1); SortBy(Name, a); Sel(1,100); Focus(List); MoveTo($d); Sub(mover);
Turning off auto-sizing columns (View -> List View -> Autosize Columns)
Using a simple view (List and Small Icon work well)
Hiding the tree (Window -> Show Navigation Panel)
And making the window you're going to run this in as small as possible.
FAQ | XY News RSS | XY Twitter
Still some problems with it though:
Updated version:
And it can cause XY to crash.
If you shrink the window down as much as possible and leave the tree visible, #231, causes it to crash.
So hide the tree!
Updated version:
Code: Select all
"mover"
Setting(KeepFoldersOnTop, 1);
Setting(SortFoldersApart, 1);
Setting(HideFoldersInList, 0);
//Create new folder (using suffix to avoid collision)
#231;
SortBy(Created, d);
Focus(List);
Sel(1,1);
Set($d, <curitem>);
Setting(HideFoldersInList, 1);
SortBy(Name, a);
Sel(1,100);
Focus(List);
MoveTo($d);
Sub(mover);
If you shrink the window down as much as possible and leave the tree visible, #231, causes it to crash.
So hide the tree!
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Fixed.TheQwerty wrote:And it can cause XY to crash.
If you shrink the window down as much as possible and leave the tree visible, #231, causes it to crash.
FAQ | XY News RSS | XY Twitter