Just posting my scripts for my game drives in hopes to get some feedback and tips for any improvements.
Daily
Title('Game Disk Daily')
Description("Modiffied Data Disk Daily description") // See the "Settings.MyD" file.
/* Write the header to the logfile. See the "Settings.MyD" file for the
definition of the "LogHeader" string. */
WriteLogfile("MyDefrag.log","LogHeader")
/* Select and process the volumes one by one. */
VolumeSelect
CommandlineVolumes()
VolumeActions
/* Write the "before" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogBefore" string. */
AppendLogfile("MyDefrag.log","LogBefore")
/* Zone 1: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending,MftSize * 0.01)
FileEnd
/* Zone 2: Directories. */
FileSelect
Directory(yes)
FileActions
FastFill()
FileEnd
MakeGap(RoundUp(ZoneBegin,VolumeSize * 0.001))
/* Zone 2.1: SWTOR files. */
FileSelect
DirectoryPath("D:\Games\Star Wars-The Old Republic")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.2: total war shogun 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\total war shogun 2")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.3: The Witcher 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\the witcher 2")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.4: Dead island files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\dead island")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.5: L.A Noire files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\l.a.noire")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.6: Portal 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\portal 2")
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 3: all other files. */
FileSelect
all
FileActions
Defragment(Fast)
FastFill()
FileEnd
/* Write the "after" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogAfter" string. */
AppendLogfile("MyDefrag.log","LogAfter")
VolumeEnd
/* Write the footer to the logfile. See the "Settings.MyD" file for the
definition of the "LogFooter" string. */
AppendLogfile("MyDefrag.log","LogFooter")
Weekly
Title('Game Disk Weekly')
Description("Modiffied Data Disk Weekly description") // See the "Settings.MyD" file.
/* Write the header to the logfile. See the "Settings.MyD" file for the
definition of the "LogHeader" string. */
WriteLogfile("MyDefrag.log","LogHeader")
/* Select and process the volumes one by one. */
VolumeSelect
CommandlineVolumes()
VolumeActions
/* Write the "before" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogBefore" string. */
AppendLogfile("MyDefrag.log","LogBefore")
/* Zone 1: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending,MftSize * 0.01)
FileEnd
/* Zone 2: Directories. */
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
FileEnd
MakeGap(RoundUp(ZoneBegin,VolumeSize * 0.001))
/* Zone 2.1: SWTOR files. */
FileSelect
DirectoryPath("D:\Games\Star Wars-The Old Republic")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.2: total war shogun 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\total war shogun 2")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.3: The Witcher 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\the witcher 2")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.4: Dead island files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\dead island")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.5: L.A Noire files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\l.a.noire")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.6: Portal 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\portal 2")
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 3: all other files. */
FileSelect
all
FileActions
Defragment(Fast)
Defragment()
FastFill(WithShuffling)
FileEnd
/* Write the "after" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogAfter" string. */
AppendLogfile("MyDefrag.log","LogAfter")
VolumeEnd
/* Write the footer to the logfile. See the "Settings.MyD" file for the
definition of the "LogFooter" string. */
AppendLogfile("MyDefrag.log","LogFooter")
Montly
Title('Game Disk Monthly')
Description("Modiffied Data Disk Monthly description") // See the "Settings.MyD" file.
/* Write the header to the logfile. See the "Settings.MyD" file for the
definition of the "LogHeader" string. */
WriteLogfile("MyDefrag.log","LogHeader")
/* Select and process the volumes one by one. */
VolumeSelect
CommandlineVolumes()
VolumeActions
/* Write the "before" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogBefore" string. */
AppendLogfile("MyDefrag.log","LogBefore")
/* Zone 1: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending,MftSize * 0.01)
FileEnd
/* Zone 2: Directories. */
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
FileEnd
MakeGap(RoundUp(ZoneBegin,VolumeSize * 0.001))
/* Zone 2.1: SWTOR files. */
FileSelect
DirectoryPath("D:\Games\Star Wars-The Old Republic")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.2: total war shogun 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\total war shogun 2")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.3: The Witcher 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\the witcher 2")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.4: Dead island files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\dead island")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.5: L.A Noire files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\l.a.noire")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 2.6: Portal 2 files. */
FileSelect
DirectoryPath("D:\Games\Steam\steamapps\common\portal 2")
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneBegin,VolumeSize * 0.01))
FileEnd
/* Zone 3: all other files. */
FileSelect
all
FileActions
SortByName(Ascending)
FileEnd
/* Write the "after" statistics to the logfile. See the "Settings.MyD" file
for the definition of the "LogAfter" string. */
AppendLogfile("MyDefrag.log","LogAfter")
VolumeEnd
/* Write the footer to the logfile. See the "Settings.MyD" file for the
definition of the "LogFooter" string. */
AppendLogfile("MyDefrag.log","LogFooter")
What i would like to try and do is dump directorys like the ones listed below at the end of the disk as they are not ever used.
D:\Games\Star Wars-The Old Republic\EUALAs
D:\Games\Star Wars-The Old Republic\extras
D:\Games\Star Wars-The Old Republic\readmes
D:\Games\Steam\steamapps\common\total war shogun 2\redist
D:\Games\Steam\steamapps\common\the witcher 2\redist
D:\Games\Steam\steamapps\common\batman2\Setup (not added to script yet)
D:\Games\Steam\steamapps\common\dead island\Redist
D:\Games\Steam\steamapps\common\l.a.noire\reslists