Hi all,
I have been trying to make a script for my data disk, which consists mainly games.
The script should keep every game files together and the file movement should be at minimum when installing new games and afterwards running new defragment.
These are the procedures of the script:
-move all junk files away
-a gap for new games to be installed, (is it needed?)
-"a favourite game" which is sorted by file size, loading times should improve.
-Then my Steam folder and sorted by creation time.
-Then make a gap so next zone will always begin from the same position.
-And then the rest of the games which are also sorted by creation time.
This is the script which i have managed to do..
VolumeSelect
Name("G:")
VolumeActions
/* Make a gap for the junk files to be moved away. */
MakeGap(VolumeUsed * 1 + VolumeFree * 0.1, DoNotVacate)
/* Zone 1: Junk files, not games. */
FileSelect
not ( DirectoryPath("G:\Games" )
)
FileActions
Defragment(fast)
FastFill(WithShuffling)
MoveUpToZone()
FileEnd
/* Start from the beginning of the disk. */
MakeGap(0)
/* Zone 2: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending, MftSize * 0.1)
FileEnd
/* Zone 3: Directories and a gab for new files. */
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneEnd,VolumeSize * 0.01), DoNotVacate)
FileEnd
/* Zone 4: Favourite Game. */
FileSelect
DirectoryPath("G:\Games\Battlefield 2")
FileActions
SortBySize(Ascending)
FileEnd
/* Zone 5: Steam. */
FileSelect
DirectoryPath("G:\Games\Steam")
FileActions
SortByName(Ascending)
FileEnd
/* Start the next zone from 20% of disk. */
MakeGap(VolumeSize * 0.2, DoNotVacate)
/* Zone 6: Rest of the installed games. */
FileSelect
FullPath("G:\Games\*","*")
FileActions
SortByCreationDate(Ascending)
FileEnd
VolumeEnd
So i have been trying to figure out how do i set the zones starting points always the same, so there wouldn't be full sorting every time i defrag.
MakeGap(VolumeSize * 0.2, DoNotVacate) works but what happens if my steam folder exceeds the size of the determined gab?
Or is there easier way to achieve this?
The weekly version is the same without sorting, only defragmenting and moving new files/games up to zone.
VolumeSelect
Name("G:")
VolumeActions
/* Make a gap for the junk files to be moved away. */
MakeGap(VolumeUsed * 1 + VolumeFree * 0.1, DoNotVacate)
/* Zone 1: Junk files, not games. */
FileSelect
not ( DirectoryPath("G:\Games" )
)
FileActions
Defragment(fast)
FastFill(WithShuffling)
MoveUpToZone()
FileEnd
/* Start from the beginning of the disk. */
MakeGap(0)
/* Zone 2: Place the MFT and some other special NTFS files. */
FileSelect
SelectNtfsSystemFiles(yes)
FileActions
PlaceNtfsSystemFiles(Ascending, MftSize * 0.1)
FileEnd
/* Zone 3: Directories and a gab for new files. */
FileSelect
Directory(yes)
FileActions
SortByName(Ascending)
AddGap(RoundUp(ZoneEnd,VolumeSize * 0.01), DoNotVacate)
FileEnd
/* Zone 4: Favourite Game. */
FileSelect
DirectoryPath("G:\Games\Battlefield 2")
FileActions
Defragment()
FastFill(WithShuffling)
MoveUpToZone()
FileEnd
/* Zone 5: Steam. */
FileSelect
DirectoryPath("G:\Games\Steam")
FileActions
Defragment(Fast)
FastFill(WithShuffling)
MoveUpToZone()
FileEnd
/* Start the next zone from 20% of disk. */
MakeGap(VolumeSize * 0.2, DoNotVacate)
/* Zone 6: Rest of the installed games. */
FileSelect
FullPath("G:\Games\*","*")
FileActions
Defragment(Fast)
FastFill(WithShuffling)
MoveUpToZone()
FileEnd
VolumeEnd
Please comment!
