Make your own free website on Tripod.com
next up previous contents
Next: Conclusion/Summary Up: Simulation And Experimentation Previous: Source Code

Experimentation

In early 1997, Mark Russinovich wrote an article for Windows NT Magazine on disk defragmentation. On his web site, there is source code for a command line disk defragmentation utility. It is not full featured as it relies on user interaction.

It has three features.

1.
it has a command for displaying the free space on a disk.
2.
it has a command for displaying what clusters are used by a specific file.
3.
it has a command for moving clusters of a file from one place to another.

When executed, Mr. Russinovich's program accepts three commands:

1.
b [StartLcn] list unallocated clusters on the disk
2.
n <PathName> list used clusters for specified file
3.
m <PathName> <startVcn> <TargetLcn> <NumVcns> move clusters for specified file



Barnett Hsu
1998-10-31