Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 19, 2013, 05:29:45 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Script to Optimize Data Partition by folders  (Read 1399 times)
eugen7
Newbie
*
Posts: 1


View Profile
« on: March 30, 2010, 03:51:30 pm »

Hello everybody,
I am new here. And first thing i like is to thank you for this great program!

I have a 1TB hdd. Smiley
Part 1 = 30gb winXP
Part 2 = 40gb win7
Part 3 (drive F)= 900gb for the rest

Does the following script I make good to optimize drive F by FOLDERS such that...
1. Move GAMES and PORTABLE programs in to fastest zone (zone 1 methinks)
2. Move my virtual machines VPC and VBOX to 2nd fastest zone
3. Move BACKUP and INSTALLATION folder to end of disk
4. And quickly defrag all others




VolumeSelect
  Name("F:")
VolumeActions

  // NTFS RECLAIM
  ReclaimNtfsReservedAreas()

  // NTFS SYSTEM FILES
  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
    PlaceNtfsSystemFiles(Ascending, MftSize * 0.1)
    AddGap(ZoneEnd + 100MB)
  FileEnd

  // SORT DIRECTORY ONLY
  FileSelect
    Directory(yes)
  FileActions
    SortByName(Ascending)
    AddGap(ZoneEnd + 300MB)
  FileEnd

  // MOVE BACKUP FOLDERS TO END OF DISK
  FileSelect
      DirectoryPath("F:\BACKUP*")
      or DirectoryPath("F:\INSTALLATIONS*")
  FileActions
    MoveToEndOfDisk()
  FileEnd


  // PUT PORTABLE PROGRAMS AND GAMES INTO ZONE-1
  FileSelect
     DirectoryPath("F:\PORTABLE*")
     or DirectoryPath("F:\GAMES*")
  FileActions
    SortByName(Ascending)
    AddGap(RoundUp(ZoneEnd, VolumeSize * 0.02)) 
  FileEnd

  // PUT VIRTUAL MACHINES INTO ZONE-2
  FileSelect
     DirectoryPath("F:\VPC*")
     or DirectoryPath("F:\VBOX*")
  FileActions
    SortByName(Ascending)
  FileEnd

  // DEFRAG ALL OTHER QUICKLY
  FileSelect
    all
  FileActions
    Defragment(Fast)
    FastFill()
  FileEnd

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



View Profile WWW
« Reply #1 on: March 30, 2010, 11:44:33 pm »

Does the following script I make good to optimize drive F by FOLDERS such that...
It looks alright to me. Two points though: the ReclaimNtfsReservedAreas() is not needed because you are also using PlaceNtfsSystemFiles(), and the several SortByName() actions will make this script very slow so you should only use it incidentally, for example once per month.
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!