chaos945
OSNN Senior Addict
- Joined
- 10 Feb 2003
- Messages
- 934
I was fooling around today and decided I needed to make an application that had a progress bar. So after fiddling with a few ideas I started to make a new defrag tool to replace my aging batch files.
I came up with this simple tool that detects all FIXED drives then uses the windows defragmenter to defragment them, with a progress bar of course. After the tool is finished defragmenting it then utilizes the 'ProcessIdleTasks' command, which then re-arranges files on the disk to match the exact order they are loaded during startup. This list is in %systemroot%\Prefetch\Layout.ini.
Anyone get errors please post them.
Enjoy!
/Revision
I've added the actual progress values rounded to the nearest whole number as they go by.
*see latest post for new version*
I came up with this simple tool that detects all FIXED drives then uses the windows defragmenter to defragment them, with a progress bar of course. After the tool is finished defragmenting it then utilizes the 'ProcessIdleTasks' command, which then re-arranges files on the disk to match the exact order they are loaded during startup. This list is in %systemroot%\Prefetch\Layout.ini.
Anyone get errors please post them.
Enjoy!
/Revision
I've added the actual progress values rounded to the nearest whole number as they go by.
*see latest post for new version*