Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 11:45:12 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: Criticism needed  (Read 1451 times)
TheAnonymous
JkDefrag Senior
****
Posts: 29


View Profile
« on: November 23, 2009, 04:24:19 pm »

Please take note of the following:

-I'm using a WD VelociRaptor 10,000RPM 150G short-stroked to 27GB.
-The drive does not contain: temporary files, page file, I've deleted 4GB of system files, system restore, games, search index or volume shadow copies.
-Using Windows 7 64-bit Ultimate
-The drive is the OS drive

Code:
VolumeSelect
  Name("c:")
VolumeActions
 
  ReclaimNtfsReservedAreas()

  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
    SortByName(Ascending)
  FileEnd
 
  FileSelect
    Directory(yes)
  FileActions
    SortByName(Ascending)
  FileEnd

  FileSelect
    ImportListFromBootOptimize()
  FileActions
    SortByImportSequence(Ascending)
  FileEnd

FileSelect
    not(
      Size(50000000,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")
      )
  FileActions
    MoveDownFill()
  FileEnd

  FileSelect
    all
  FileActions
    MoveDownFill()
  FileEnd

VolumeEnd

Summary:
-Move out non-system NTFS reserve files
-Sort NTFS files by name. (Zone1)
-Sort directories by name. (Zone2)
-Sort files used when booting. (Zone3)
-Move non-spacehog files right behind Zone 3, keep sorted order. (Zone 4)
-Move non-spacehog files behind Zone4. (Zone5)
-Does not create gaps between zones like the default script.
-Does not create log files.

Zone1 = beginning of disk. Zone5= as close to the beginning of the disk as possible, but lower zones being closer.

Problems:
-Some files in Zone 5 get fragmented when the script finishes. How would I go about fixing this?

Usage:
This script is ment to be used on a regular basis after doing a full sorting of the disk. This way you keep the assortment that you have. I noticed the Daily Optimize script used FastFill() and I didn't want to lose the sorting that I had just done.

My "Full Optimize" script looks like this:

Code:
VolumeSelect
  Name("c:")
VolumeActions
 
  ReclaimNtfsReservedAreas()

  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
    SortByName(Ascending)
  FileEnd
 
  FileSelect
    Directory(yes)
  FileActions
    SortByName(Ascending)
  FileEnd

  FileSelect
    ImportListFromBootOptimize()
  FileActions
    SortByImportSequence(Ascending)
  FileEnd

FileSelect
    not(
      Size(50000000,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")
      )
  FileActions
    SortByName(Ascending)
  FileEnd


  FileSelect
    all
  FileActions
    SortByName(Ascending)
  FileEnd


VolumeEnd

Summary:
-Move out non-system NTFS reserve files
-Sort NTFS files by name. (Zone1)
-Sort directories by name. (Zone2)
-Sort files used when booting. (Zone3)
-Sort regular files by name. (Zone4).
-Sort spacehog files by name. (Zone5).
-Does not create gaps between zones like the default script.
-Does not create log files.

Usage:
-After you have installed your OS, all your drivers and applications. After that, on occasional use, once a month or so.
Problems: Like the daily/weekly script I made, some files in Zone 5 get fragmented when the script finishes.

Extra notes:
-The default scripts creates gaps between zones for temp files. Since I don't have these, I figured it would be best to not make them.
-I install games onto my SSD (solid-state-drive) since I care more about game loading times than OS loading times. I also move directories created by games in %appdata%, %user% and %programdata%, then use symbolic links to point them to the SSD.
« Last Edit: November 23, 2009, 07:07:00 pm by TheAnonymous » Logged
slender
JkDefrag Hero
*****
Posts: 51


View Profile
« Reply #1 on: November 23, 2009, 04:29:46 pm »

hmm Zone 1 & 2
"
    SortByName(Ascending)
    MoveDownFill()
"
Why?

.edit
You said, that you don't have windows system files on drive, but you still have boot sequence optimization. I dont understand.
« Last Edit: November 23, 2009, 04:32:01 pm by slender » Logged
TheAnonymous
JkDefrag Senior
****
Posts: 29


View Profile
« Reply #2 on: November 23, 2009, 04:34:27 pm »

hmm Zone 1 & 2
"
    SortByName(Ascending)
    MoveDownFill()
"
Why?

.edit
You said, that you don't have windows system files on drive, but you still have boot sequence optimization. I dont understand.
The drive is my OS drive. When I said "4GB of system files" I meant that I had deleted 4GB of system files. Such as FileRepository, Help, etc. I fixed the original post now. Thanks for bringing that to my attention.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #3 on: November 23, 2009, 05:55:32 pm »

Code:
    Defragment()
    SortByName(Ascending)
    MoveDownFill()
If you want to use SortByName(Ascending) the other commands are useless, as the files are automatically defragmented when sorting and are moved down to the right place.

jonib
Logged

slender
JkDefrag Hero
*****
Posts: 51


View Profile
« Reply #4 on: November 23, 2009, 05:56:38 pm »

You didn't notice the first question.

Zones 1 & 2
SortByName(Ascending)
MoveDownFill()

Why? I think that MoveDownFill() is useless after SortByName(Ascending)
Logged
TheAnonymous
JkDefrag Senior
****
Posts: 29


View Profile
« Reply #5 on: November 23, 2009, 07:08:25 pm »

After the posts above pointing out errors (and slender doing it twice, sorry) along with reading the Scripts section more carefully, I've revised both scripts.

As one can tell, the second script is almost exactly the same as the default Monthly Script, but it does not create log files or gaps between zones.

Script 1 is meant to be used daily, after running Script 2 first.
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!