© J.C. Kessels 2009
MyDefrag Forum
May 23, 2013, 07:25:03 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Questions and help
>
Slow Optimize script not working under 4.2.4?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Slow Optimize script not working under 4.2.4? (Read 690 times)
Popcorn Dave
Newbie
Posts: 1
Slow Optimize script not working under 4.2.4?
«
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
Re: Slow Optimize script not working under 4.2.4?
«
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
Re: Slow Optimize script not working under 4.2.4?
«
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
jonib
Logged
MyDefrag script syntax highlighting generator
.
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...