Skip to content

negrutiu/defragment

Repository files navigation

De/Fragmentation Tool

Rubiks Cube

This is an experimental project to explore the use of file defragmentation techiques in Windows. It can be used to defragment files, or to fragment them in a controlled way for testing purposes.

The project interacts with the following filesystem control codes to manipulate file fragments:

Example Usage

The tool is a cli app that accepts the following arguments:

defragment.exe analyze C:\Dir\File1 "C:\Dir\File*.ext" "@C:\Dir\FileCatalog.txt"
defragment.exe defragment [--compact] [--simulate] "C:\Dir\File*.ext" "@C:\Dir\FileCatalog.txt"
defragment.exe fragment [--count=15] "C:\Dir\File1.iso"
defragment.exe prompt "C:\Dir\File*.ext" "@C:\Dir\FileCatalog.txt"

See full usage instructions by running defragment.exe with no arguments.

License

This project is licensed under the MIT License.
Third-party assets with different terms are listed in THIRD_PARTY_NOTICES.md.

Packages

 
 
 

Contributors