Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 19, 2013, 08:29:01 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Moving Specific Directories to the Beginning of a Data Drive  (Read 1015 times)
Glowyrm
JkDefrag Junior
**
Posts: 7


View Profile
« on: October 03, 2010, 03:16:10 am »

Hey guys, I have a drive that I use for data and games. I was wondering how I could Defrag the drive the way the "Data Disk Monthly" script does, but also to move one particular Directory to the very beginning (if that is the fastest part of the drive) since the game constantly loads textures from the hard drive more often than most games.

Thanks!
Logged
Glowyrm
JkDefrag Junior
**
Posts: 7


View Profile
« Reply #1 on: October 03, 2010, 04:51:36 am »

I think I figured it out. I just added a new zone after the MFT/NTFS Zone that specifies the World of Warcraft folder, hopefully that will put it right after the HDD files.

Code:
# MyDefrag v4.0 default script: Data Disk Daily
#
# This script is part of the standard MyDefrag distribution.

Title('Data Disk MonthlyWOW')
Description("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
    DirectoryPath("G:\World of Warcraft")
  FileActions
    SortByName(Ascending)
  FileEnd

  /* Zone 3: Directories. */
  FileSelect
    Directory(yes)
  FileActions
    SortByName(Ascending)
  FileEnd

  MakeGap(RoundUp(ZoneBegin,VolumeSize * 0.001))

  /* Zone 4: 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")

Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #2 on: October 03, 2010, 08:02:56 am »

Yes, something like that. But I think it is better if you put the extra zone after the directories, so that the directories are as close as possible to the MFT.
Logged
Glowyrm
JkDefrag Junior
**
Posts: 7


View Profile
« Reply #3 on: October 03, 2010, 08:12:04 pm »

Thanks for the reply!

Those directories are just 5-6 other games and 2 folders of music/videos/pictures, nothing that really needs to benefit from being near the MFT, right? It's just a pure data drive.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!