
And the two-scripts approach, I tried that. Somehow I wasn't even able to move the files in the end even with example script. Does it assume the space in the end should be free? If all other files are excluded, they are marked unmovable, aren't they? Problem is, total free space on this volume is less than size of the files I want to put in the end. So no luck there...
Actually that's my biggest problem with MyDefrag - not being able to put files in the end of disk easily. Too bad it's free and I can't complain

...In the end I finally did what I wanted. One script, but it took a few passes. The original MakeGap(to-the-near-end,DoNotVacate) <myfiles> SortByName(Ascending) MakeGap(0) idea worked. I just had to manually calculate appropriate beginning of a zone + some headroom. I haven't tried but I guess it wouldn't work without headroom in the end of disk...
The weird thing is - the script would move out the already sorted files and then put them right back in the same place they were even after complete defragmentation.
Also, as it took more than 1 pass (which really shouldn't be the case for SortBy placement), this defeats the original "move these files out of the way for easier defragmenting the rest" idea as now it actually took even more time. So I really hope for a proper way to do it in the future. Cheers.



