I started JkDefrag from a script using:
c:\dave\JkDefrag.exe -a 4 C: E:
As it started the analyze phase of drive C:, I decided I wanted to stop it. I closed the app. The DOS prompt did not come back. I checked and the JkDefrag process was still running. I was not sure what it was doing so I left it alone as I had no way to stop it other than to kill the process via task manager. Looking at the log file after it finally stopped, I turns out that it continued processing the next drive on the command line and defragged drive E: although the log file did not have the statistics normmaly at the end of processing. I recommend that you stop the program rather than continue processing command line parameters when the user closes the app. I realize you need to finish processing whatever file is in progress in the background. This is different.
A copy of the log file from the event is below.
This is really cool software. Thanks for sharing it.
Thanks...
Dave
------------------Log File Contents --------------
2007/01/05 12:48:31 Step 1: Analyze
2007/01/05 12:48:36 Finished.
2007/01/05 12:48:36 - Total disk space: 30746062848 bytes, 7506363 clusters
2007/01/05 12:48:36 - Bytes per cluster: 4096 bytes
2007/01/05 12:48:36 - Number of files analyzed: 1805
2007/01/05 12:48:36 - Number of directories analyzed: 173
2007/01/05 12:48:36 - Number of clusters in analyzed items: 107582
2007/01/05 12:48:36 - Number of fragmented items: 0
2007/01/05 12:48:36 - Number of clusters in fragmented items: 0 (0.00%)
2007/01/05 12:48:36 - Biggest file: C:\Backup\systemstate-08Aug03.bkf
2007/01/05 12:48:36 - Biggest directory: C:\Documents and Settings\Bev\Application Data\Sun\Java\Deployment\cache\javapi\v1.0\file
2007/01/05 12:48:36 - Free disk space: 2863995 clusters (38.15% of disk)
2007/01/05 12:48:36 - Number of gaps: 679
2007/01/05 12:48:36 - Number of small gaps: 324 (47.72% of gaps)
2007/01/05 12:48:36 - Number of clusters in small gaps: 2134 (0.07% of free disk space)
2007/01/05 12:48:36 - Number of big gaps: 355 (52.28% of all gaps)
2007/01/05 12:48:36 - Number of clusters in big gaps: 2861861 clusters (99.93% of free clusters)
2007/01/05 12:48:36 - Average gap size: 4217.96 clusters
2007/01/05 12:48:36 - Biggest gap: 1067142 clusters (37.26% of free clusters)
2007/01/05 12:48:37 Step 1: Analyze
2007/01/05 12:48:38 Step 2: Free space
2007/01/05 12:48:39 Step 3: MFT zone
2007/01/05 12:48:39 Step 4: Directories
2007/01/05 12:48:39 Step 5: Defragment
2007/01/05 12:48:40 Step 6: Optimize