Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 06:57:59 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: Striving to get "colors" into my script...  (Read 396 times)
joeyeti
Newbie
*
Posts: 3


View Profile
« on: April 05, 2012, 09:28:29 am »

Hi JK and all,

I am striving to get "colors" onto my screen while defragging. Pls see the below script and tell me if I did something wrong...
I am only seeing the default colors of light and darker blue, yellow and then the colors for read/write that I set (purple, cyan), but none of the SetFileColor ones...

Code:
VolumeActions

SetColor(Empty,0,0,0)                                   // Black
           SetColor(Allocated,45,72,128)                           // Dark-blue
           SetColor(BusyRead,255,69,255)                          // Purple
SetColor(BusyWrite,0,255,255)                          // Cyan
SetFileColor(all,All,139,158,198)                           // Blue
SetFileColor(all,Processed,139,198,139)                     // Green
SetFileColor(all,Fragmented,229,229,0)                      // Yellow
SetFileColor(all,not(Movable),204,92,92)                    // Red
SetFileColor(all,Selected,175,198,247)                      // Light-blue
SetFileColor(all,Selected and Fragmented,255,255,0)         // Light-yellow
SetFileColor(all,Selected and not(Movable),255,115,115)     // Light-red
...

Also, second question - will the AddGap here really move the files in Zone 6 to the end of the disk, as I imagine it should?

Code:
  /* Zone 5: spacehog files (less important files that take up a lot of space). */
  FileSelect
    all and
not (
  FileName("*.avi")
      or FileName("*.mkv")
      or FileName("*.mpg")
      or FileName("*.mpeg")
      or FileName("*.vob")
      or FileName("*.ifo")
      or FileName("*.bup")
      or FileName("*.flv")
      or FileName("*.wmv")
)
  FileActions
    SortByName(Ascending)
AddGap(VolumeSize)
  FileEnd

  /* Zone 6: Movies */
  FileSelect
      FileName("*.avi")
      or FileName("*.mkv")
      or FileName("*.mpg")
....
Logged
joeyeti
Newbie
*
Posts: 3


View Profile
« Reply #1 on: April 05, 2012, 10:11:49 am »

Heh, figured the first part out finally, works now Wink

The second question is still open!
Logged
ff_mfg
JkDefrag Hero
*****
Posts: 51


View Profile
« Reply #2 on: April 05, 2012, 02:34:06 pm »

Have you tried it yet? My guess it would move out the Zone 6 up, but won't be able to defragment it there - as there will be no free space above ZoneBegin.

As much as I want (sometimes:) to have perfectly sorted zone at the end of disk, currently MyDefrag options for it are limited. Maybe using something like MakeGap(<calculate shift here>, DoNotVacate) and SortBy() in the last zone should work, but I haven't tried it. I still can't get to remember what operations do moveuptozone and what don't.

I've used plain MoveToEndOfDisk() before, but files you want to put there tend to be large, and the end always ends up with a lot of big gaps. What's worse, as free space dwindles (as it does), MoveToEndOfDisk() spends a lot of time moving huge files from the middle to... slightly farther middle (because the end is littered with gaps and small files). I'm beginning to think that I am not as much want to have these files at the end as at the side of the disk - to remove them from active zones where file creation and fragmentation happens. So maybe putting them in the very first zone might be a better idea (that's not a general suggestion though, obviously, and certainly not for system volumes).
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #3 on: April 05, 2012, 05:17:23 pm »

Also, second question - will the AddGap here really move the files in Zone 6 to the end of the disk, as I imagine it should?
Afaik, yes. But shouldn't a moderately sized gap do?
If any of these are are being accessed somehow, Windows likes to create new files there, too, making the system slower.
Logged

Need help creating a script? Try MyDefrag Script Creator.
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!