Hi, i currently have the following script, which would do somewhat what the default scripts would do, with 1 difference :
- Do the default operations from the default script
...BUT...
- Make sure to put these 3 things to the very end (slowest part) of the partition.
- DirectoryPath("C:\delen\ExcellsFun")
- DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN")
- Size(1000000000,0)
However, even when the script seems to position these at the very end of the partition after all, they are getting moved with each previous zone.
For example :
When it finds these files in zone3, during zone 3 operation they are moved to the position of where zone 4 starts, then....
When it finds these files in zone4, during zone 4 operation they are moved to the position of where zone 5 starts, then....
When it finds these files in zone5, during zone 5 operation they are moved to the position of where zone 6 starts, then....
When it finds these files in zone6, during zone 6 operation they are moved to the position of where zone 7 starts, then....
They are finally moved another time to the actually end of the partition.
as you see, instead of just putting any of these files directly to the end of the partition, in whatever zone it is currently being processed, it is actually moving these (huge) file 5 (FIVE!) TIMES instead of just placing them at the end whenever it finds them.
Please,
1) what am I doing wrong here. and...
2) is it allowed, and should this work, by placing the MoveToEndOfDisk() part at the very beginning of my script, so that the next zones will no longer have to move them over and over ?
Thanks for any help.
Greetings, Bart.
This is the script :
# MyDefrag v4.0 default script: System Disk Daily
#
# This script is part of the standard MyDefrag distribution.
Title('System Disk Daily')
Description("System 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")
/* Place files at 30% into the data on the disk. */
MakeGap(RoundUp(VolumeUsed * 0.3,VolumeSize * 0.01), DoNotVacate)
/* Zone 1: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending,MftSize * 0.1)
FileEnd
/* Zone 2: Directories. */
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
FileEnd
/* Place files at the beginning of the disk. */
MakeGap(0)
/* Zone 3: files used when booting, and a gap. */
FileSelect
ImportListFromBootOptimize()
and
Not (
DirectoryPath("C:\delen\ExcellsFun") or DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN")
)
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneEnd,VolumeFree * 0.01))
FileEnd
/* Zone 4: files used by the most used programs, and a gap. */
FileSelect
ImportListFromProgramHints("*.pf")
and
Not (
DirectoryPath("C:\delen\ExcellsFun") or DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN")
)
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneEnd,VolumeFree * 0.01))
FileEnd
/* Zone 5: regular files and a gap. */
FileSelect
not(
Size(1000000000,0)
or (LastAccessEnabled(yes) and LastAccess(,1 month ago))
or DirectoryName("$RECYCLE.BIN")
or DirectoryName("RECYCLED")
or DirectoryName("RECYCLER")
or DirectoryName("$*")
or DirectoryName("Downloaded Installations")
or DirectoryName("Ehome")
or DirectoryName("Fonts")
or DirectoryName("Help")
or DirectoryName("I386")
or DirectoryName("IME")
or DirectoryName("Installer")
or DirectoryName("ServicePackFiles")
or DirectoryName("SoftwareDistribution")
or DirectoryName("Speech")
or DirectoryName("Symbols")
or DirectoryName("ie?updates")
or DirectoryName("dllcache")
or DirectoryName("Installshield Installation Information")
or DirectoryName("System Volume Information")
or DirectoryName("windows.old")
or FileName("*.7z")
or FileName("*.arj")
or FileName("*.avi")
or FileName("*.bak")
or FileName("*.bup")
or FileName("*.bz2")
or FileName("*.cab")
or FileName("*.chm")
or FileName("*.dvr-ms")
or FileName("*.gz")
or FileName("*.ifo")
or FileName("*.iso")
or FileName("*.log")
or FileName("*.lzh")
or FileName("*.mp3")
or FileName("*.msi")
or FileName("*.old")
or FileName("*.pdf")
or FileName("*.rar")
or FileName("*.rpm")
or FileName("*.tar")
or FileName("*.wav")
or FileName("*.wmv")
or FileName("*.vob")
or FileName("*.z")
or FileName("*.zip")
or DirectoryPath("C:\delen\ExcellsFun")
or DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN")
)
FileActions
Defragment(Fast)
FastFill()
AddGap(RoundUp(ZoneEnd,VolumeFree * 0.01))
FileEnd
/* Zone 6: spacehog files (less important files that take up a lot of space). */
FileSelect
all
and
Not (
DirectoryPath("C:\delen\ExcellsFun") or DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN") or Size(1000000000,0)
)
FileActions
Defragment(Fast)
FastFill()
FileEnd
/* Zone 7: Move all files in delen-ExcellsFun and files over 1GB to the end of the partition */
FileSelect
DirectoryPath("C:\delen\ExcellsFun") or DirectoryPath("C:\delen\Backups van TOPPY-PC\DOWN") or Size(1000000000,0)
FileActions
MoveToEndOfDisk()
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")