Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 12:28:37 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: Move some directiries to end, sort rest by name?  (Read 1985 times)
matthelm
JkDefrag Senior
****
Posts: 23


View Profile
« on: February 13, 2010, 06:33:13 pm »

Anyone,
Could someone post a script that does the following:

Move "dir1", "dir2" and "dir3" to the end of the disk, and then sort the rest of the disk by name?

I just can NOT get my (fat, dirty, old  Grin ) mind around MyDefrag's scripting language.   Please post the entire script, as it's where to put stuff I have problems with.

Oh, and can you choose how the stuff at the end of the disk is sorted?  (name, size, etc.)

Logged

To boldly screw up my computer, like no one has screwed it up before!
BloodySword
JkDefrag Hero
*****
Posts: 1113



View Profile
« Reply #1 on: February 13, 2010, 08:17:38 pm »

What purpose do you have to move some dirs to the end of the disk? Are there spacehogs wich are sorted into these dirs?

In the FileBoolean-Section, try following at the directory zone:

Directories(Yes) or not (DirectoryName("bla1") or DirectoryName("bla2"))

And on the zone to move the rest of the dirs at the end:

DirectoryName("bla1") or DirectoryName("bla2")
FileActions
MoveToEndOfDisk()
Logged

Greetings from Germany!
matthelm
JkDefrag Senior
****
Posts: 23


View Profile
« Reply #2 on: February 13, 2010, 11:14:23 pm »

These are system backup.  Chance of use 0.000000000000000000001%, but needed.  But using prime real estate.
Logged

To boldly screw up my computer, like no one has screwed it up before!
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #3 on: February 17, 2010, 04:27:42 am »

Code:
VolumeSelect
  CommandlineVolumes()
  and Removable(no)
  and Writable(yes)
  and Mounted(yes)
VolumeActions
# Sort all files except files in dir1, dir2 and dir3.
  FileSelect
    Not(
      DirectoryName("dir1") Or
      DirectoryName("dir2") Or
      DirectoryName("dir3")
    )
  FileActions
    SortByName(Ascending)
  FileEnd

# Move the rest to the end of the disk.
  FileSelect
    All
  FileActions
    MoveToEndOfDisk()
  FileEnd
VolumeEnd
Logged

matthelm
JkDefrag Senior
****
Posts: 23


View Profile
« Reply #4 on: February 17, 2010, 05:22:03 am »

Sir,
Thank you greatly!!!!!!!!!!!
Logged

To boldly screw up my computer, like no one has screwed it up before!
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!