# MyDefrag v4.0 # # Full defrag script by Falcon4 - falcon4@gmail.com Title('Full Optimize') Description(' It defrags the drive. Very well. ') WindowSize(minimized) RunScript('Settings') WhenFinished(exit) VolumeSelect CommandlineVolumes() and Removable(no) and Writable(yes) and Mounted(yes) VolumeActions DeleteJournal() FileSelect Directory(yes) FileActions FastFill() AddGap(Megabytes(20)) FileEnd WindowSize(normal) FileSelect # Select all the NTFS system files. SelectNtfsSystemFiles(yes) FileActions # Place the selected files, sorted by their full path. PlaceNtfsSystemFiles(Ascending) AddGap(Megabytes(275)) FileEnd FileSelect ( DirectoryName("System32") OR DirectoryName("SysWOW64") OR DirectoryName("winsxs") ) & NOT ( Size(100000000,0) ) FileActions Defragment() FastFill() AddGap(PercentageOfVolume(5)) FileEnd FileSelect DirectoryName("Program Files") & NOT ( Size(100000000,0) ) FileActions Defragment() FastFill() AddGap(PercentageOfVolume(1)) FileEnd FileSelect all & NOT ( DirectoryName("Documents and Settings") ) & NOT ( DirectoryName("Users") ) & NOT ( Size(100000000,0) ) FileActions Defragment() FastFill() AddGap(PercentageOfVolume(2)) FileEnd FileSelect DirectoryName("Documents and Settings") || DirectoryName("Users") & NOT ( Size(100000000,0) ) FileActions Defragment() FastFill() AddGap(Megabytes(256)) FileEnd FileSelect Size(100000000,0) FileActions Defragment() FastFill() FileEnd VolumeEnd