Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 19, 2013, 11:53:48 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: A noob question about moving specific files to end of partition  (Read 1152 times)
soulburner
Newbie
*
Posts: 1


View Profile
« on: July 27, 2010, 11:35:25 am »

My question was probably answered already, but I couldn't find anything interesting while browsing and searching the forums, so here goes.

I would like to modify the OptimizeDaily, Weekly and Monthly scripts to do the following:
1. move video files (*.avi, *.mkv, etc) and disk image files (*.iso, etc) to the end of partition;
2. do not touch these files during the next defragmentation (like, attempt to move them to the end of disk again) unless they got fragmented

Thanks in advance and sorry if it was mentioned already!
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #1 on: July 27, 2010, 12:26:02 pm »

Normally, these files don't fragment. Plus, if they're already at the end of the volume, they can't be moved there again. Wink

Put this as the first zone of your scripts:
Code:
FileSelect
  FileName("*.iso")
  or FileName("*.mkv")
  or FileName("*.avi")
FileActions
  MoveToEndOfDisk()
FileEnd

Edit: Replaced the second ".iso" with ".avi".
« Last Edit: July 27, 2010, 05:53:08 pm by Darlis » Logged

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


View Profile
« Reply #2 on: July 27, 2010, 04:19:16 pm »

FileSelect
  FileName("*.iso")
  or FileName("*.mkv")
  or FileName("*.iso")
FileActions
  MoveToEndOfDisk()
FileEnd
Use *.avi for one of these two.

And personally I'd recommend doing this action as the last one, not as first - so that eventual files high up on the disk are shaken down first. But that would require excluding these files from every preceding zone.
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #3 on: July 27, 2010, 05:54:09 pm »

Ah, a c&p error  Tongue . I've corrected it.
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!