Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 23, 2013, 07:25:03 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: Slow Optimize script not working under 4.2.4?  (Read 690 times)
Popcorn Dave
Newbie
*
Posts: 1


View Profile
« on: October 29, 2009, 07:03:38 pm »

I've always used the slow optimize script to defrag my drives since I usually have it going while I'm asleep and don't care how much time it's taking but now 4.2.4 is reporting an error in the script at line 61, column 35 where it states that the ')' is an error and the only allowed commands are '                  ,               ' (single quotes mine).

This appears to be the offending section:

VolumeActions

  /* Write "before" statistics to the logfile. */
  AppendLogfile("MyDefrag.log","
###############################################################################
Processing volume:    !MountPoint!
###############################################################################

Total disk space:     !TotalDiskSpaceBytes! bytes
Volume type:          !VolumeType!

Before:
  Unfragmented items: !FILES202N! bytes !FILES200N! items
  Fragmented items:   !FILES212N! bytes !FILES210N! items
  Gaps:               !GAP10N! bytes !GAP00N! gaps
  Average gap:        !GAP13N! bytes
  Median gap:         !GAP14N! bytes
  Biggest gap:        !GAP15N! bytes
  Average end-begin distance: !AverageBeginEndDistance! clusters
")

  ReclaimNtfsReservedAreas()

  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
    PlaceNtfsSystemFiles(Ascending) <== throwing error here
    AddGap(UntilPercentageOfVolumeMultiple(0.01))
  FileEnd

My question is: Is there something in the new scripts that emulates the slow defrag and if not, why is this now throwing an error?

Thanks!

Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: October 29, 2009, 07:08:45 pm »

The syntax of MyDefrag changes with every release and scripts are generally not upwards compatible. See the manual for the new syntax of the PlaceNtfsSystemFiles action.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #2 on: October 29, 2009, 09:02:53 pm »

Popcorn Dave check the new syntax for AddGap() and NUMBER, as that would be your next syntax error  Cool

jonib
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!