Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 19, 2013, 10:57:42 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: how can i do my strategy  (Read 1848 times)
zlotowinfo
Newbie
*
Posts: 2


View Profile
« on: August 31, 2010, 06:25:19 pm »

all files to end of disk
on start of disk all modified last time (1-2days)
nice will be some mft optimization
« Last Edit: August 31, 2010, 06:28:15 pm by zlotowinfo » Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #1 on: August 31, 2010, 07:10:27 pm »

This should do the trick:
Code:
Title( "Move most files to end of disk" )
Description( "Recently changed files are at the beginning, other files are moved to the end of the disk." )

VolumeSelect
  CommandlineVolumes()
VolumeActions

  MakeGap( RoundUp( VolumeUsed * 0.3, VolumeSize * 0.01 ), DoNotVacate )
 
  FileSelect
    Directory( yes )
  FileActions
    SortByName( ascending )
  FileEnd
 
  FileSelect
    SelectNtfsSystemFiles( yes )
  FileActions
    PlaceNtfsSystemFiles( ascending, MftSize * 0.1 )
  FileEnd
 
  MakeGap( 0 )
 
  FileSelect
    LastChange( 2 days ago,  )
  FileActions
    FastFill()
  FileEnd
 
  FileSelect
    All
  FileActions
    MoveToEndOfDisk()
  FileEnd
 
VolumeEnd
Logged

Need help creating a script? Try MyDefrag Script Creator.
zlotowinfo
Newbie
*
Posts: 2


View Profile
« Reply #2 on: August 31, 2010, 10:14:48 pm »

dont know why but i think isnt that what i wishes
how computer write to disk strategy

after this defragment i see all file at top
frequently at end, i thinked will be inversely

1. i needed frequently modified to place where system alocate new files
2. after this "defragment" trash.box from mail program 164 fragments file modified today
« Last Edit: August 31, 2010, 10:22:09 pm by zlotowinfo » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #3 on: September 01, 2010, 05:53:18 am »

frequently at end, i thinked will be inversely
Please note that MyDefrag shows the beginning of the disk at the bottom of the screen. See the DiskmapFlip setting to change this.

Quote
1. i needed frequently modified to place where system alocate new files
There is no fixed place where Windows will create new files, it can happen anywhere on the disk.

Quote
2. after this "defragment" trash.box from mail program 164 fragments file modified today
That's not what you asked for in your first posting. Perhaps it is better for you to do the following: take the standard SystemDiskDaily.MyD script and modify the "SetZoneBegin(0)" that you will find just before Zone 3. Change this into for example "SetZoneBegin(100MB)" to create a 100 megabyte gap at the beginning of your disk. The rest of your disk will be defragmented and optimized as usual.
Logged
Darlis
JkDefrag Hero
*****
Posts: 1725


View Profile WWW
« Reply #4 on: September 01, 2010, 08:18:25 am »

2. after this "defragment" trash.box from mail program 164 fragments file modified today
Oeps, I forgot the Defragment() action in zone 3:
Code:
  FileSelect
    LastChange( 2 days ago,  )
  FileActions
    Defragment(Fast)
    FastFill()
  FileEnd

take the standard SystemDiskDaily.MyD script and modify the "SetZoneBegin(0)" that you will find just before Zone 3.
Good to see that you've renamed MakeGap in 4.3.2.  Grin
Logged

Need help creating a script? Try MyDefrag Script Creator.
Kasuha
JkDefrag Hero
*****
Posts: 595


View Profile
« Reply #5 on: September 01, 2010, 09:33:05 am »

I was experimenting with gap at the beginning of the disk some time ago and it turned out to be one of things MyDefrag was battling about with system optimizations. If you want to have a gap at the beginning of the disk I recommend leaving the boot zone at the very beginning and making bigger gap after it instead.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7156



View Profile WWW
« Reply #6 on: September 01, 2010, 07:14:42 pm »

Good to see that you've renamed MakeGap in 4.3.2.  Grin
Oeps, you are correct, I meant MakeGap. The SetZoneBegin command is indeed from the upcoming release.
Logged
Dana7Mathew
Newbie
*
Posts: 1


I am a web developer....


View Profile
« Reply #7 on: November 23, 2010, 08:42:47 am »

Hey Darlis... i use your script code... its really good...
i like it.. good work..thanks..
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!