micky
2011-10-03 22:16:14 UTC
(Please remember that this is a hobby for me, and I myself know an
easier likely way to get to the final result here, but it won't
involve a question that has intrigued me for years.)
The question is: Is there a way to move a file to a specific place on
the disk or partition, like the start?
Without writing code in Assember. This question has botthered me for
years. Once in a while there is a practical application.
I tthink if the partition were full to overflowing, and I coudl find
out the name of a file that Old was the first in the partition that
was as big as File F, the file I wanted at the start, I could delete
Old, and copy F to the partition, and it would go in the spot that Old
had used.
But what if the partition has loads of empty space? What do MS-DOS
and PC-DOS and various versions of windows do? Lets assume either an
NTFS or FAT32 partition. Does it make a difference?
Will it move it to
1) the next available space (next after the last file moved),
2) the first available space (which is almost the very start of the
parition.) . There is either enough empty space at the start of the
partition for this file to be stored in one piece, or there is loads
of empty space.
3) Or will it try to move the file to be near other files in the same
sub-sub-directory in which this new file will reside,, or at least the
same sub-directory, or at least the same highest level directory?
Option 3 seems to violate all the rules I've heard of, but I can't
help thinking that's what will happen.
Option 2 is what I want. Is it likely I'll get it?
easier likely way to get to the final result here, but it won't
involve a question that has intrigued me for years.)
The question is: Is there a way to move a file to a specific place on
the disk or partition, like the start?
Without writing code in Assember. This question has botthered me for
years. Once in a while there is a practical application.
I tthink if the partition were full to overflowing, and I coudl find
out the name of a file that Old was the first in the partition that
was as big as File F, the file I wanted at the start, I could delete
Old, and copy F to the partition, and it would go in the spot that Old
had used.
But what if the partition has loads of empty space? What do MS-DOS
and PC-DOS and various versions of windows do? Lets assume either an
NTFS or FAT32 partition. Does it make a difference?
Will it move it to
1) the next available space (next after the last file moved),
2) the first available space (which is almost the very start of the
parition.) . There is either enough empty space at the start of the
partition for this file to be stored in one piece, or there is loads
of empty space.
3) Or will it try to move the file to be near other files in the same
sub-sub-directory in which this new file will reside,, or at least the
same sub-directory, or at least the same highest level directory?
Option 3 seems to violate all the rules I've heard of, but I can't
help thinking that's what will happen.
Option 2 is what I want. Is it likely I'll get it?