Title ('Defrag Madness')
Description ('C: only')
Slowdown (/*SLOWDOWN*/)
Debug (/*DEBUG*/)
ExitIfOnBatteryPower(no)
LowMemoryUsage(yes)
PreventPowerSaving(yes)
PreventScreenSaving(no)
OtherInstances (exit)
WhenFinished (/*WHENFINISHED*/)
# Optimize C: with 3 zones
VolumeSelect
Name ("c:")
VolumeActions
ReclaimMFTzone ()
# Optimize MFT
FileSelect
FileName ("$mft")
FileActions
SortByName (Ascending)
FileEnd
# Optimize Directories
FileSelect
Directory (yes)
FileActions
SortByName (Ascending)
FileEnd
# zone1 system + apps
SetBeginOfZone (PlusMegabytes(100))
// Optimize the system disk for faster booting.
FileSelect
ImportListFromBootOptimize ()
FileActions
SortByImportSequence (Ascending)
FileEnd
// System files
//FileSelect
// System (yes)
//FileActions
// SortByName (Ascending)
//FileEnd
// all except spacehogs, media files + downloads by directory name
FileSelect
not (DirectoryName("Downloads") or DirectoryName("Downloadz")
or DirectoryName("DownloadDirector") or DirectoryName("$user") or DirectoryName("VMWare"))
and not (FileName("*.jpg") or FileName("*.gif") or FileName("*.png"))
/*SPACEHOGS*/
FileActions
SortByName(Ascending)
FileEnd
# zone2 media + projects
SetBeginOfZone (PlusPercentageOfDisk(100))
FileSelect
not (DirectoryName("Downloads") or DirectoryName("Downloadz") or DirectoryName("DownloadDirector"))
/*SPACEHOGS*/
FileActions
SortByName(Ascending)
FileEnd
# zone3 spacehogs + downloadz
SetBeginOfZone (PlusPercentageOfDisk(100))
FileSelect
all
FileActions
Defragment ()
Fastfill ()
FileEnd
VolumeEnd
Trying to achieve 3 zones here:
1. System + Applications
2. Media
3. Spacehogs at the end of the disk.
Using the code above I suspect the not unary does not seem to work as I still see files from the excluded directories in the first zone or I'm not understanding things right

Can someone please elaborate? Thx!