Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Stuff
Friday, October 23rd, 2009 at 4:22:57am MDT 

  1. # MyDefrag v4.0 default script: Move To End Of Disk
  2. #
  3. # This is an example script.
  4.  
  5. Title('Move To End Of Disk')
  6. Description('
  7. Move all the files and directories to the end of the selected disk(s).
  8. ')
  9.  
  10.  
  11. WriteLogfile("MyDefrag.log","LogHeader")
  12.  
  13. # Exclude the files that you do NOT want to move to the end of the disk. */
  14. ExcludeFiles(All and not(FileName("*.avi")))
  15.  
  16. # Analyze the volume and move the not-excluded files to the end of the disk.
  17. VolumeSelect
  18.   CommandlineVolumes()
  19. VolumeActions
  20.  
  21.   AppendLogfile("MyDefrag.log","LogBefore")
  22.  
  23.   /* Dirty trick to move all the files (that are not excluded by the ExcludeFiles
  24.      before) to the end of the disk. Files may get fragmented. */
  25.   MakeGap(PercentageOfVolume(100))
  26.  
  27.   AppendLogfile("MyDefrag.log","LogAfter")
  28.  
  29. VolumeEnd

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right